/* Dashboard Styles - Matching Main Site Design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Brand Colors - Matching Main Site */
    --navy: #1B3358;
    --red: #D5102B;
    --white: #FFFFFF;
    --light-gray: #FAFAFA;
    --dark-text: #1A1A1A;
    --icon-gray: #4A4A4A;
}

/* sidebar layout fix */
.dashboard-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-gray);
    color: var(--dark-text);
    display: flex;
    gap: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Events Management Styles */
.events-list-container {
    margin: 0;
    padding: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.event-card-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.event-card-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.event-card-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.event-card-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.event-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    color: #718096;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #f7fafc;
    color: #4c51bf;
}

.delete-event-btn:hover {
    color: #e53e3e;
}

.toggle-visibility-btn:hover {
    color: var(--navy);
    background: rgba(27, 51, 88, 0.1);
}

/* Event Visibility Badge */
.event-visibility-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-visibility-badge.event-visible {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
}

.event-visibility-badge.event-hidden {
    background: rgba(245, 101, 101, 0.1);
    color: #742a2a;
}

.event-card-body {
    margin-top: 1rem;
}

.event-description {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    color: var(--icon-gray);
    font-size: 0.9rem;
}

.event-meta-item svg {
    flex-shrink: 0;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(27, 51, 88, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
}

.event-slug {
    font-size: 0.85rem;
    color: var(--icon-gray);
    font-family: monospace;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-family: 'Inter', sans-serif;
    color: var(--icon-gray);
    margin-bottom: 1rem;
}

.events-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.events-empty-state p {
    font-family: 'Inter', sans-serif;
    color: var(--icon-gray);
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Login Page - Matching Main Site Design */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--light-gray);
    padding: 2rem;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 51, 88, 0.03) 0%, rgba(213, 16, 43, 0.03) 100%);
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3.5rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 51, 88, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.login-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.login-header p {
    font-family: 'Inter', sans-serif;
    color: var(--icon-gray);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

.login-form {
    margin-top: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(27, 51, 88, 0.1);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--dark-text);
    background: var(--white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 51, 88, 0.1);
}

.login-form .form-control::placeholder {
    color: var(--icon-gray);
    opacity: 0.6;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(213, 16, 43, 0.1);
    border: 1px solid rgba(213, 16, 43, 0.2);
    color: var(--red);
}

.alert-error svg {
    flex-shrink: 0;
    color: var(--red);
}

.alert-error p {
    margin: 0;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    background: var(--red);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: #b80e25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(213, 16, 43, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(27, 51, 88, 0.1);
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-back-link:hover {
    color: var(--red);
    gap: 0.75rem;
}

.login-back-link svg {
    flex-shrink: 0;
}

/* Login Page Responsive */
@media (max-width: 600px) {
    .login-page {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2.5rem 2rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .login-logo img {
        height: 50px;
    }
}

/* Dashboard Layout - sidebar layout fix */
.dashboard-sidebar {
    flex-shrink: 0;
    width: 260px;
    background: var(--navy);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.sidebar-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.25rem 0;
    text-align: center;
}

.sidebar-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left: 3px solid var(--red);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.nav-item-logout {
    color: rgba(255, 255, 255, 0.7);
}

.nav-item-logout:hover {
    background: rgba(213, 16, 43, 0.2);
    color: var(--red);
}

/* Dashboard Main - sidebar layout fix */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin: 2rem;
    margin-left: 2rem;
    padding: 0;
    min-width: 0;
    background: var(--light-gray);
}

.dashboard-header {
    background: var(--white);
    padding: 1.25rem 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    width: 100%;
    flex-shrink: 0;
}

.header-left {
    flex: 0 0 auto;
    min-width: 300px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--light-gray);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(27, 51, 88, 0.1);
}

.search-bar svg {
    color: var(--icon-gray);
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
}

.search-bar input::placeholder {
    color: var(--icon-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-view-site {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-view-site:hover {
    background: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213, 16, 43, 0.3);
}

.header-view-site svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.header-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    font-weight: 600;
}

.header-time span:first-child {
    font-size: 1rem;
}

.header-icon-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--icon-gray);
    border-radius: 8px;
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: var(--light-gray);
    color: var(--navy);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-user:hover {
    background: rgba(27, 51, 88, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user span {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 600;
}

/* Dashboard Top Menu */
.dashboard-top-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f7fafc;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.top-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.top-menu-link:hover {
    background: white;
    color: #4c51bf;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-menu-link .nav-icon {
    font-size: 1rem;
    line-height: 1;
}

.top-menu-link .nav-text {
    display: inline-block;
}

@media (max-width: 1200px) {
    .top-menu-link .nav-text {
        display: none;
    }
    
    .top-menu-link {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .header-left {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .dashboard-top-menu {
        width: 100%;
        justify-content: space-around;
    }
    
    .header-left {
        min-width: auto;
        flex: 1;
    }
}

/* Dashboard Content */
/* sidebar layout fix */
.dashboard-content {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow: visible;
}

/* Image Upload Section */
.image-upload-section {
    width: 100%;
}

.image-upload-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.image-upload-controls .form-control {
    flex: 1;
    min-width: 200px;
}

#imagePreview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid rgba(27, 51, 88, 0.1);
}

#previewImg {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

#previewFilename {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--icon-gray);
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Newsletter Management Styles */
.newsletters-list-container {
    margin: 0;
    padding: 0;
}

.newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.newsletter-card-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.newsletter-card-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.newsletter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.newsletter-card-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    flex: 1;
}

.newsletter-card-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.newsletter-card-actions {
    display: flex;
    gap: 0.5rem;
}

.newsletter-visibility-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-visibility-badge.newsletter-visible {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
}

.newsletter-visibility-badge.newsletter-hidden {
    background: rgba(245, 101, 101, 0.1);
    color: #742a2a;
}

.newsletter-card-body {
    margin-bottom: 0;
}

.newsletter-meta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.newsletter-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--icon-gray);
    min-height: 20px;
}

.newsletter-meta-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.newsletter-file-row {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.newsletter-file-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.newsletter-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0.875rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(27, 51, 88, 0.1);
}

.newsletter-upload-section {
    width: 100%;
}

.newsletter-upload-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-upload-controls .form-control {
    flex: 1;
    min-width: 200px;
}

#newsletterPreview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid rgba(27, 51, 88, 0.1);
}

#newsletterPreviewFilename {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--icon-gray);
}

/* Dashboard Welcome Section */
.dashboard-welcome-section {
    margin-bottom: 2.5rem;
}

.welcome-content {
    text-align: left;
}

.welcome-message {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--icon-gray);
    margin: 0;
    font-weight: 400;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 51, 88, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(27, 51, 88, 0.15);
}

.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-navy {
    background: rgba(27, 51, 88, 0.1);
    color: var(--navy);
}

.stat-icon-red {
    background: rgba(213, 16, 43, 0.1);
    color: var(--red);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--icon-gray);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action-btn {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 51, 88, 0.08);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: var(--red);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(27, 51, 88, 0.08);
    color: var(--navy);
}

.quick-action-btn:hover .action-icon {
    background: var(--red);
    color: var(--white);
}

.action-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.2px;
}

.action-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--icon-gray);
    margin: 0;
    font-weight: 400;
}

/* Recent Activity */
.recent-activity-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 51, 88, 0.08);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(27, 51, 88, 0.08);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.activity-event {
    background: rgba(27, 51, 88, 0.1);
    color: var(--navy);
}

.activity-service {
    background: rgba(213, 16, 43, 0.1);
    color: var(--red);
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-bottom: 0.375rem;
    font-weight: 500;
    line-height: 1.5;
}

.activity-time {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--icon-gray);
    font-weight: 400;
}

.activity-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--icon-gray);
}

.activity-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin: 0;
}

/* Services Management Page */
.dashboard-page-header {
    margin: 0 0 2.5rem 0;
    padding: 0;
}

.dashboard-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.dashboard-page-header p {
    font-family: 'Inter', sans-serif;
    color: var(--icon-gray);
    font-size: 1rem;
}

.services-management-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-management-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-management-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-management-card.service-visible {
    border-color: #48bb78;
}

.service-management-card.service-hidden {
    border-color: #e2e8f0;
    opacity: 0.7;
}

.service-card-header {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 2rem;
    line-height: 1;
}

.service-card-body {
    padding: 1.5rem;
}

.service-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.service-card-body p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-tag {
    padding: 0.375rem 0.75rem;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-visibility-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #48bb78;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.visibility-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.status-visible {
    background-color: #48bb78;
}

.status-indicator.status-hidden {
    background-color: #cbd5e0;
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.service-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.service-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.service-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.service-modal-close:hover {
    background: #f7fafc;
    color: #1a202c;
}

.service-form {
    padding: 1.5rem;
}

.service-form .form-group {
    margin-bottom: 1.5rem;
}

.service-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
}

.service-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.service-form .form-control:focus {
    outline: none;
    border-color: #4c51bf;
}

.service-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #b80e25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(213, 16, 43, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: 2px solid var(--navy);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .services-management-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-message {
        font-size: 2rem;
    }
    
    .header-view-site span {
        display: none;
    }
    
    .header-view-site {
        padding: 0.625rem;
    }
}

/* sidebar layout fix - responsive */
@media (max-width: 900px) {
    .dashboard-page {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .dashboard-main {
        width: 100%;
        flex: 1;
        margin: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-message {
        font-size: 1.75rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

