/* Admin Dashboard - Complete Styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    padding: 20px;
    position: relative;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.login-form input:focus {
    outline: none;
    border-color: #000;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-hint {
    text-align: center;
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.85rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Admin Dashboard Layout */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header p {
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding-left: 2rem;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-left-color: white;
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    background: white;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-weight: 500;
}

.user-info i {
    font-size: 2.2rem;
    color: #000;
}

.content-area {
    padding: 2.5rem;
    flex: 1;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.stat-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-actions h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 28px;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Poppins', sans-serif;
}

.action-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Forms */
.admin-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.btn-save {
    padding: 16px 40px;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.btn-save:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.btn-add {
    padding: 14px 28px;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Poppins', sans-serif;
}

.btn-add:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Items List */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Announcement Cards */
.announcement-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.announcement-card-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.announcement-date-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.announcement-date-badge i {
    color: #000;
}

.announcement-card-body {
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.announcement-video-thumb {
    position: relative;
    width: 280px;
    min-width: 280px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.announcement-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.announcement-video-thumb:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-play-icon i {
    font-size: 1.5rem;
    color: #000;
    margin-left: 4px;
}

.announcement-card-content {
    flex: 1;
}

.announcement-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.4;
}

.announcement-card-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.announcement-card-content small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.announcement-card-content small i {
    color: #000;
}

.announcement-card-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.announcement-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-meta i {
    color: #999;
}

/* Item Card (Generic) */
.item-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.item-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: #1a1a1a;
    font-weight: 700;
}

.item-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.item-info small {
    color: #999;
    font-size: 0.85rem;
}

.item-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.btn-view,
.btn-edit,
.btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-view:hover {
    background: #bbdefb;
    transform: translateY(-2px);
}

.btn-edit {
    background: #f0f0f0;
    color: #000;
}

.btn-edit:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-delete {
    background: #fee;
    color: #c00;
}

.btn-delete:hover {
    background: #fdd;
    transform: translateY(-2px);
}

/* Announcement View Modal */
.announcement-view-modal {
    max-width: 900px;
}

.announcement-view-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.announcement-view-modal .modal-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.announcement-view-content {
    padding: 2rem;
}

.announcement-video-player {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.announcement-video-player video {
    width: 100%;
    display: block;
}

.announcement-view-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #000;
    margin-top: 0.2rem;
}

.info-item strong {
    display: block;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.info-description strong {
    display: block;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.info-description p {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Video Preview */
.video-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.video-preview video {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.video-preview p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.overlay-btn.delete {
    background: #f44336;
    color: white;
}

.overlay-btn.delete:hover {
    background: #d32f2f;
}

.gallery-card-info {
    padding: 1.3rem;
}

.gallery-category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #000;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.gallery-card-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.4;
}

.gallery-card-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-info small {
    display: block;
    color: #999;
    font-size: 0.8rem;
}

.gallery-card-info small i {
    margin-right: 0.3rem;
}

/* Gallery Filter Admin */
.gallery-filter-admin {
    display: flex;
    gap: 0.8rem;
    margin: 1.5rem 0 2rem 0;
    flex-wrap: wrap;
}

.filter-btn-admin {
    padding: 12px 24px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
}

.filter-btn-admin:hover {
    border-color: #000;
    color: #000;
    transform: translateY(-2px);
}

.filter-btn-admin.active {
    background: #000;
    color: white;
    border-color: #000;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.filter-btn-admin.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Image Preview */
.image-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.image-preview p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Gallery View Modal */
.gallery-view-modal {
    max-width: 900px;
}

.gallery-view-content {
    padding: 2rem;
}

.gallery-view-content img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.gallery-view-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.gallery-view-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
}

.gallery-view-info p:last-child {
    margin-bottom: 0;
}

.gallery-view-info strong {
    color: #000;
    font-weight: 700;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #4caf50;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #4caf50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification i {
    font-size: 1.5rem;
    color: #4caf50;
}

.notification.error i {
    color: #f44336;
}

.notification span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #000;
    background: #f0f0f0;
}

.modal-content form {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-cancel {
    padding: 14px 28px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: #000;
    color: white;
}

.badge-new {
    background: #f44336;
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .announcement-card-body {
        flex-direction: column;
    }
    
    .announcement-video-thumb {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        transition: width 0.3s ease;
    }
    
    .sidebar:hover {
        width: 240px;
    }
    
    .sidebar-header h2,
    .sidebar-header p,
    .nav-item span,
    .btn-logout span {
        display: none;
    }
    
    .sidebar:hover .sidebar-header h2,
    .sidebar:hover .sidebar-header p,
    .sidebar:hover .nav-item span,
    .sidebar:hover .btn-logout span {
        display: block;
    }
    
    .sidebar-header {
        padding: 1.5rem 0.5rem;
        text-align: center;
    }
    
    .sidebar:hover .sidebar-header {
        padding: 2rem 1.5rem;
        text-align: left;
    }
    
    .nav-item {
        justify-content: center;
        padding: 1rem 0.5rem;
    }
    
    .sidebar:hover .nav-item {
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .top-bar {
        padding: 1rem 1.5rem;
    }
    
    .top-bar h1 {
        font-size: 1.4rem;
    }
    
    .user-info span {
        display: none;
    }
    
    .content-area {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-add {
        width: 100%;
        justify-content: center;
    }
    
    .item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .announcement-card-body {
        padding: 1.5rem;
    }
    
    .announcement-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-actions {
        width: 100%;
    }
    
    .gallery-filter-admin {
        flex-direction: column;
    }
    
    .filter-btn-admin {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
    }
    
    .modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-video-thumb {
        width: 100%;
    }
    
    .announcement-card-header {
        padding: 1rem 1.5rem;
    }
    
    .announcement-card-body {
        padding: 1rem 1.5rem;
    }
    
    .announcement-card-footer {
        padding: 1rem 1.5rem;
    }
    
    .btn-view,
    .btn-edit,
    .btn-delete {
        flex: 1;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-bar,
    .btn-add,
    .item-actions,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* ============================================
   MESSAGES SECTION
   ============================================ */

.message-badge {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: #f44336;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.message-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.message-card.unread {
    border-left: 4px solid #4caf50;
    background: #f9fff9;
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.message-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-sender i {
    font-size: 2.5rem;
    color: #000;
}

.message-sender h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
    font-weight: 700;
}

.message-sender p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-meta small {
    color: #999;
    font-size: 0.85rem;
}

.message-body {
    padding: 2rem;
}

.message-body h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-body h4 i {
    color: #666;
    font-size: 1rem;
}

.message-body p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}

.message-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.message-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* Responsive Messages */
@media (max-width: 768px) {
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .message-body {
        padding: 1.5rem;
    }
    
    .message-footer {
        padding: 1rem 1.5rem;
    }
    
    .message-actions {
        width: 100%;
    }
    
    .message-actions button {
        flex: 1;
        justify-content: center;
    }
}
