/* Admin Panel Styles */
:root {
    --primary-color: #667eea;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Admin Header */
.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-navbar {
    padding: 1rem 2rem;
}

.admin-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.admin-logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.admin-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.admin-logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-user-info:hover {
    background: #e2e8f0;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.admin-role {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

#userMenuArrow {
    transition: transform 0.3s ease;
    color: #64748b;
}

/* User Dropdown Menu */
.admin-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.admin-user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.menu-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.menu-username {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.menu-role {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-menu-actions {
    padding: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #64748b;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: #f8fafc;
    color: #667eea;
}

.menu-item.logout-item {
    color: #ef4444;
}

.menu-item.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Legacy logout button styles for compatibility */
.admin-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    z-index: 999;
}

.sidebar-nav {
    padding: 2rem 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #f8fafc;
    color: #667eea;
    border-left-color: #667eea;
}

.sidebar-item.active .sidebar-link {
    background: #f1f5f9;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.admin-main {
    margin-left: 280px;
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.admin-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-filter, .btn-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-search:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Activity List */
.activity-list {
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: #667eea;
    font-size: 1rem;
}

.activity-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.activity-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Quick Actions */
.quick-actions {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: #667eea;
}

.quick-action-btn span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

/* Content Grid */
.content-grid {
    display: grid;
    gap: 2rem;
}

.content-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.active, .status.published {
    background: #dcfce7;
    color: #166534;
}

.status.completed {
    background: #dbeafe;
    color: #1e40af;
}

.status.planning {
    background: #fef3c7;
    color: #92400e;
}

.status.draft {
    background: #f3f4f6;
    color: #374151;
}

.status.unread {
    background: #fef2f2;
    color: #dc2626;
}

.status.read {
    background: #f3f4f6;
    color: #6b7280;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.action-btn.edit {
    background: #dbeafe;
    color: #1e40af;
}

.action-btn.edit:hover {
    background: #bfdbfe;
}

.action-btn.delete {
    background: #fef2f2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #fecaca;
}

.action-btn.view {
    background: #f0fdf4;
    color: #166534;
}

.action-btn.view:hover {
    background: #dcfce7;
}

.action-btn.reply {
    background: #fef3c7;
    color: #92400e;
}

.action-btn.reply:hover {
    background: #fde68a;
}

.action-btn.import {
    background: #dcfce7;
    color: #166534;
}

.action-btn.import:hover {
    background: #bbf7d0;
}

/* User Info in Tables */
.author-info, .member-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-info img, .member-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-info {
    padding: 1rem;
    background: #ffffff;
}

.gallery-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.gallery-info p {
    font-size: 0.75rem;
    color: #64748b;
}

/* Settings Form */
.settings-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:invalid {
    border-color: #ef4444;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.alert i {
    font-size: 1.125rem;
}

/* Form Validation */
.form-group.error .form-input {
    border-color: #ef4444;
}

.form-group.error .error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading State */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }
    
    .admin-main {
        margin-left: 240px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-nav-container {
        padding: 0 1rem;
    }
    
    .admin-logo-title {
        font-size: 1.2rem;
    }
    
    .admin-logo-subtitle {
        font-size: 0.7rem;
    }
    
    .admin-user-info {
        padding: 0.4rem 0.8rem;
    }
    
    .admin-name {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .table-container {
        font-size: 0.75rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .admin-navbar {
        padding: 0.75rem 1rem;
    }
    
    .admin-logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .admin-logo-icon i {
        font-size: 1.2rem;
    }
    
    .admin-logo-title {
        font-size: 1rem;
    }
    
    .admin-logo-subtitle {
        font-size: 0.65rem;
    }
    
    .admin-main {
        padding: 0.75rem;
    }
    
    .section-header h1 {
        font-size: 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .settings-form {
        padding: 1rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
} 

/* --- MODERN MEMBER MODAL (V2) --- */
.member-modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(30, 41, 59, 0.32);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2.5px);
    transition: background 0.25s;
}
.member-modal-bg.active {
    display: flex;
}
.member-modal {
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    box-shadow: 0 8px 40px 0 rgba(30,41,59,0.18), 0 1.5px 8px 0 rgba(102,126,234,0.08);
    padding: 38px 36px 28px 36px;
    max-width: 420px;
    width: 96vw;
    position: relative;
    animation: fadeIn 0.35s cubic-bezier(.4,2,.6,1);
    border: 1.5px solid #e0e7ef;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.member-modal h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 22px;
    color: #2d3250;
    letter-spacing: 0.01em;
    text-align: center;
}
.member-modal .close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.18s, transform 0.18s;
    line-height: 1;
}
.member-modal .close-btn:hover {
    color: #e11d48;
    transform: scale(1.15) rotate(8deg);
}
.member-modal form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.member-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0.2rem;
}
.member-modal label {
    font-size: 1.01rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}
.member-modal input,
.member-modal select {
    padding: 10px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.04rem;
    background: #f1f5f9;
    color: #1e293b;
    outline: none;
    transition: border 0.18s, box-shadow 0.18s;
    box-shadow: 0 1.5px 4px 0 rgba(102,126,234,0.04);
}
.member-modal input:focus,
.member-modal select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px #6366f133;
    background: #fff;
}
.member-modal input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
}
.member-modal .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 12px 0;
    font-size: 1.12rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #6366f1 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 #6366f11a;
    letter-spacing: 0.01em;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.member-modal .btn-primary:hover {
    background: linear-gradient(90deg, #764ba2 0%, #6366f1 100%);
    box-shadow: 0 4px 16px 0 #6366f133;
    transform: translateY(-2px) scale(1.03);
}
.member-modal input:disabled,
.member-modal select:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}
.member-modal input[type="text"],
.member-modal input[type="email"],
.member-modal input[type="date"] {
    font-family: inherit;
}
.member-modal select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%236366f1" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7em center;
    background-size: 1.1em;
}
@media (max-width: 600px) {
    .member-modal {
        padding: 16px 4px 10px 4px;
    }
    .member-modal h2 {
        font-size: 1.08rem;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.notification-success i {
    color: #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.notification-error i {
    color: #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.notification-info i {
    color: #3b82f6;
}

.notification span {
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
} 

/* Success Message Styles */
.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #065f46;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.success-message i {
    color: #10b981;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
    flex-shrink: 0;
}

.success-message span {
    flex: 1;
    font-weight: 600;
    line-height: 1.4;
}

.close-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #10b981;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.close-success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.close-success i {
    color: #10b981;
    font-size: 0.9rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Success message pulse effect */
.success-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 12px;
    animation: pulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .success-message {
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .success-message i {
        font-size: 1.2rem;
    }
    
    .close-success {
        width: 28px;
        height: 28px;
    }
} 

/* Error Message Styles */
.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #991b1b;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
    animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.error-message i {
    color: #ef4444;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
    flex-shrink: 0;
}

.error-message span {
    flex: 1;
    font-weight: 600;
    line-height: 1.4;
}

.close-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ef4444;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.close-error:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.close-error i {
    color: #ef4444;
    font-size: 0.9rem;
}

/* Error message pulse effect */
.error-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, transparent 50%, rgba(239, 68, 68, 0.1) 100%);
    border-radius: 12px;
    animation: pulse 2s ease-in-out infinite;
    z-index: 0;
}

/* Responsive design for error messages */
@media (max-width: 768px) {
    .error-message {
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .error-message i {
        font-size: 1.2rem;
    }
    
    .close-error {
        width: 28px;
        height: 28px;
    }
}

/* Dashboard Status Lists */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.status-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-item.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.2);
}

.status-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(102, 126, 234, 0.04));
    border-color: rgba(102, 126, 234, 0.2);
}

.status-item.planning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.04));
    border-color: rgba(245, 158, 11, 0.2);
}

.status-item.cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.04));
    border-color: rgba(239, 68, 68, 0.2);
}

.status-item.published {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.2);
}

.status-item.draft {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(102, 126, 234, 0.04));
    border-color: rgba(102, 126, 234, 0.2);
}

.status-item.archived {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(100, 116, 139, 0.04));
    border-color: rgba(100, 116, 139, 0.2);
}

.status-item.default {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(100, 116, 139, 0.04));
    border-color: rgba(100, 116, 139, 0.2);
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.status-item.completed .status-icon {
    color: var(--success-color);
}

.status-item.active .status-icon {
    color: var(--primary-color);
}

.status-item.planning .status-icon {
    color: var(--warning-color);
}

.status-item.cancelled .status-icon {
    color: var(--error-color);
}

.status-item.published .status-icon {
    color: var(--success-color);
}

.status-item.draft .status-icon {
    color: var(--primary-color);
}

.status-item.archived .status-icon {
    color: #64748b;
}

.status-item.default .status-icon {
    color: #64748b;
}

.status-icon i {
    font-size: 1rem;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Recent Content */
.recent-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section h4 i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.content-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.content-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}

.content-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    flex-shrink: 0;
}

.content-icon i {
    font-size: 0.875rem;
}

.content-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.content-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.content-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.no-data p {
    font-size: 0.875rem;
    margin: 0;
}

/* Card Header Icons */
.card-header i {
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .status-item {
        padding: 0.5rem;
    }
    
    .status-icon {
        width: 32px;
        height: 32px;
    }
    
    .status-count {
        font-size: 1.1rem;
    }
    
    .content-item {
        padding: 0.5rem;
    }
    
    .content-icon {
        width: 28px;
        height: 28px;
    }
    
    .content-title {
        font-size: 0.8rem;
    }
    
    .content-time {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .status-list {
        gap: 0.5rem;
    }
    
    .recent-content {
        gap: 1rem;
    }
    
    /* Admin Header Responsive */
    .admin-nav-container {
        padding: 0 1rem;
    }
    
    .admin-logo-text {
        display: none;
    }
    
    .admin-user-details {
        display: none;
    }
    
    .admin-user-info {
        padding: 0.5rem;
    }
    
    .admin-user-menu {
        width: 250px;
        right: -10px;
    }
} 