/* Двухуровневая шапка */
#header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.top-header {
    padding: 0;
}

.top-header .container {
    max-width: 1320px;
}

.header-brand a {
    transition: opacity 0.2s;
}

.header-brand a:hover {
    opacity: 0.9;
}

.header-user .user-profile-link {
    transition: opacity 0.2s;
    padding: 5px 10px;
    border-radius: 6px;
}

.header-user .user-profile-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-info-block {
    min-width: 350px;
}

.user-profile-link {
    white-space: nowrap;
}

/* Нижняя строка навигации */
.navbar.bg-primary {
    background-color: #08462f !important;
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.navbar-nav .nav-link i {
    margin-right: 5px;
}

/* Адаптивность */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #1e2d27;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }

    .navbar-nav {
        gap: 5px;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 2px 0;
    }
}

@media (max-width: 767px) {
    .header-top-row {
        flex-wrap: wrap;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .header-user {
        order: 2;
        margin-top: 10px;
        width: 100%;
    }

    .header-brand {
        order: 1;
        flex: 0 0 100%;
        margin-bottom: 10px;
    }

    .user-info-block {
        width: 100%;
        justify-content: space-between;
        min-width: auto;
    }

    .user-profile-link {
        white-space: normal;
        flex: 1;
    }

    .header-user .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .top-header .fs-5 {
        font-size: 1rem !important;
    }

    .header-brand img {
        height: 32px !important;
        width: 32px !important;
        margin-right: 8px !important;
    }

    .header-user .user-profile-link .fw-semibold {
        display: inline !important;
    }
}

main > .container {
    padding: 20px 15px 20px;
}

.footer {
    background-color: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid #28a745;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #28a745;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.footer-copyright {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.vert-margin10 {
    margin-bottom: 10px !important;
}

.vert-margin20 {
    margin-bottom: 20px !important;
}

.vert-margin30 {
    margin-bottom: 30px !important;
}

.vert-margin40 {
    margin-bottom: 40px !important;
}

.vert-margin80 {
    margin-bottom: 80px
}


.plant-detail {
    padding: 20px 0;
}

.plant-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 64px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-images {
    margin-top: 15px;
}

.thumbnail {
    width: 105px;
    height: 105px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    margin-right: 10px;
    transition: border-color 0.2s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #218838;
}

.plant-header {
    margin-bottom: 30px;
}

.plant-title {
    font-size: 28px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 5px;
}

.plant-latin {
    font-size: 18px;
    font-style: italic;
    color: #6c757d;
    margin-bottom: 15px;
}

.plant-family {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: #495057;
    display: inline-block;
}

.properties-section {
    margin-top: 40px;
}

.property-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    border-bottom: 2px solid #218838;
    padding-bottom: 5px;
}

.property-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.property-name {
    font-weight: 600;
    color: #495057;
    min-width: 200px;
    margin-right: 15px;
}

.property-value {
    color: #6c757d;
    flex: 1;
}

.back-to-catalog {
    margin-bottom: 20px;
}

.synonyms {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 15px;
}


.plant-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h5 {
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
}

.col-md-4.col-sm-6.mb-4 {
    position: relative;
}

.plant-card-link {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    bottom: 0;
    z-index: 10;
    text-decoration: none;
}

.plant-card {
    border: 1px solid #e3f2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    height: 100%;
    cursor: pointer;
}

.plant-card-link:hover + .plant-card,
.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    border-color: #c3e6cb;
}

.plant-image {
    height: 200px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-image.no-image {
    color: #6c757d;
}

.plant-info {
    padding: 15px;
}

.plant-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.plant-latin {
    font-style: italic;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.plant-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.plant-tags {
    margin-top: 10px;
}

.plant-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.clear-filters {
    color: #dc3545;
    font-size: 14px;
}

.filter-checkbox {
    margin-bottom: 5px;
}

.search-box {
    margin-bottom: 20px;
}

.label-form {
    padding-top: 20px;
    color: #495057;
    font-weight: bold;
}

/* Минималистичная пагинация */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 30px 0;
    list-style: none;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #fff;
}

.pagination li a:hover {
    border-color: #28a745;
    color: #28a745;
    background-color: #f8f9fa;
}

.pagination li.active a {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
    cursor: default;
}

.pagination li.active a:hover {
    background-color: #218838;
    border-color: #218838;
}

.pagination li.disabled span {
    border-color: #e9ecef;
    color: #adb5bd;
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.pagination li.prev a,
.pagination li.next a {
    font-weight: 600;
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
    .pagination {
        gap: 2px;
    }

    .pagination li a,
    .pagination li span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Хлебные крошки */
.breadcrumb-item a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #218838;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Plant form styles */
.plant-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #198754;
    color: #198754;
}

.property-field {
    margin-bottom: 20px;
}

.required-mark {
    color: #dc3545;
}

.checkbox-group .form-check {
    margin-bottom: 8px;
}

.info-box {
    background: #e7f3ff;
    padding: 15px;
    border-left: 4px solid #0d6efd;
    margin-bottom: 30px;
    border-radius: 4px;
}

/* Admin form specific */
.admin-plant-form .card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-plant-form .card-img-top {
    height: 150px;
    object-fit: cover;
}

.admin-plant-form .has-error .form-control,
.admin-plant-form .has-error .control-label {
    border-color: #a94442;
}

.admin-plant-form .has-error .help-block {
    color: #a94442;
    margin-top: 5px;
}

.admin-plant-form .has-error .control-label {
    color: #a94442;
}

.admin-plant-form .text-danger {
    color: #a94442;
}

/* Image preview cards */
#preview-container .card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

#preview-container .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hero-section {
    background: linear-gradient(135deg, rgba(57, 98, 67, 0.85) 0%, rgba(32, 201, 151, 0.15) 100%),
                url('/images/hero-garden.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-section .search-box .input-group {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.hero-section .search-box .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 50px 0 0 50px;
}

.hero-section .search-box .input-group-text {
    background: white;
    border: none;
    padding-right: 20px;
}

.hero-section .search-box .btn {
    font-size: 1.5rem;
    padding: 0 10px;
    border-radius: 0 50px 50px 0;
}

.hero-section .btn-light {
    background: white;
    border: 2px solid white;
    color: #28a745;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-section .btn-outline-light:hover {
    background: white;
    color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.featured-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #28a745;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 50px;
}

.plant-card-home-wrapper {
    position: relative;
}

.plant-card-home-link {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    bottom: 0;
    z-index: 10;
    text-decoration: none;
}

.plant-card-home {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border: 1px solid #e3f2e6;
    cursor: pointer;
}

.plant-card-home-link:hover + .plant-card-home,
.plant-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.25);
    border-color: #c3e6cb;
}

.plant-image-home {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
    position: relative;
}

.plant-image-home.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 48px;
}

.plant-info-home {
    padding: 20px;
}

.plant-title-home {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.plant-latin-home {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.features-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9f7ef 100%);
    padding: 60px 0;
    border-radius: 15px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(68, 74, 69, 0.9) 0%, rgba(255, 255, 255, 0.15) 100%),
                url('/images/cta-garden-bg.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-section .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-light {
    background: white;
    border: 2px solid white;
    color: #28a745;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

.cta-section .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.article-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e3f2e6;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    border-color: #c3e6cb;
}

.article-info {
    padding: 20px;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.article-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.suggestion-section {
    margin-bottom: 40px;
}

.suggestion-section .card {
    border: 2px dashed #28a745;
    background: #f8f9fa;
}

.suggestion-section .card-title {
    color: #28a745;
    margin-bottom: 15px;
}

.suggestion-form textarea {
    resize: vertical;
    min-height: 120px;
}
/* Адаптивность для hero-section */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-section .search-box .form-control {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .hero-section .btn-light,
    .hero-section .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-section .mt-4 {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-box {
        max-width: 100%;
    }
}

/* Community Section (Станьте частью сообщества) */
.community-section {
    background: linear-gradient(135deg, rgba(42, 45, 60, 0.9) 0%, rgba(255, 255, 255, 0.15) 100%),
                url('/images/community-bg.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.community-section .container {
    position: relative;
    z-index: 2;
}

.community-section .section-title {
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.community-section .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.community-section .alert-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    backdrop-filter: blur(10px);
}

.community-section .card {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    backdrop-filter: blur(10px);
}

/* Адаптивность для community и CTA секций */
@media (max-width: 768px) {
    .community-section {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .cta-section {
        padding: 70px 0;
        background-attachment: scroll;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .cta-section .lead {
        font-size: 1.1rem;
    }

    .cta-section .btn-light {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .community-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section .lead {
        font-size: 1rem;
    }

    .cta-section .btn-light {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Collection Card Styles */
.collection-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Quill Editor Styles */
#quill-editor {

    background: white;
}

.ql-toolbar.ql-snow {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.ql-container.ql-snow {
    border: 1px solid #dee2e6;
    font-size: 14px;
}

/* Admin Layout Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.admin-sidebar-header {
    padding: 20px;
    background: #1a252f;
    border-bottom: 1px solid #34495e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-sidebar-header h4 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-menu li {
    border-bottom: 1px solid #34495e;
}

.admin-sidebar-menu li a {
    display: block;
    padding: 5px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar-menu li a:hover,
.admin-sidebar-menu li a.active {
    background: #34495e;
    color: white;
    padding-left: 25px;
}

.admin-sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 0;
    background: white;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #f8f9fa;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-main {
    padding: 30px;
    flex: 1;
    background: white;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    padding: 5px 10px;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .sidebar-close-btn {
        display: block;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .admin-header {
        padding: 15px;
    }
    .admin-main {
        padding: 15px;
    }
    .admin-user-info {
        gap: 10px;
    }
    .admin-user-info div {
        display: none;
    }
}

/* Help Card Styles */
.help-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e3f2e6;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

.help-card h5 {
    color: #28a745;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Collection Card on Homepage */
.collection-card-link {
    text-decoration: none;
    display: block;
}

/* Comment Styles */
.comment-item {
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 10px;
}

.comment-item.official {
    border-left-color: #0d6efd;
    background-color: #e7f3ff;
}

.comment-item.hidden {
    opacity: 0.5;
    background-color: #ffe0e0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-text {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-replies {
    margin-top: 15px;
}

.comment-item .btn-sm {
    padding: 2px 8px;
    font-size: 0.85em;
}
