/* Dashboard Styles */
.dashboard-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #1a202c;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #4c51bf;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #718096;
    font-size: 0.9rem;
}

.login-form {
    margin-top: 2rem;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Dashboard Layout */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4c51bf;
    margin-bottom: 0.25rem;
}

.sidebar-header p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-item:hover {
    background: #f7fafc;
    color: #4c51bf;
}

.nav-item.active {
    background: #edf2f7;
    color: #4c51bf;
    border-left: 3px solid #4c51bf;
}

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

.nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.nav-item-logout {
    color: #e53e3e;
}

.nav-item-logout:hover {
    background: #fed7d7;
    color: #c53030;
}

/* Dashboard Main */
.dashboard-main {
    margin-left: 260px;
    min-height: 100vh;
}

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

.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: #f7fafc;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search-bar svg {
    color: #a0aec0;
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: #2d3748;
}

.search-bar input::placeholder {
    color: #a0aec0;
}

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

.header-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: #4c51bf;
    font-weight: 600;
}

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

.header-icon-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #4a5568;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-user:hover {
    background: #edf2f7;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4c51bf;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

/* 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 */
.dashboard-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-message {
    font-size: 2rem;
    font-weight: 700;
    color: #4c51bf;
    margin-bottom: 2rem;
    text-align: center;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

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

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

.stat-icon-orange {
    background: #fff5e6;
    color: #f6ad55;
}

.stat-icon-green {
    background: #f0fff4;
    color: #48bb78;
}

.stat-icon-purple {
    background: #faf5ff;
    color: #9f7aea;
}

.stat-icon-red {
    background: #fff5f5;
    color: #fc8181;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #48bb78;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f6ad55;
    margin-bottom: 1.5rem;
}

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

.quick-action-btn {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.quick-action-orange {
    border-left: 4px solid #f6ad55;
}

.quick-action-green {
    border-left: 4px solid #48bb78;
}

.quick-action-purple {
    border-left: 4px solid #9f7aea;
}

.quick-action-red {
    border-left: 4px solid #fc8181;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-orange .action-icon {
    background: #fff5e6;
    color: #f6ad55;
}

.quick-action-green .action-icon {
    background: #f0fff4;
    color: #48bb78;
}

.quick-action-purple .action-icon {
    background: #faf5ff;
    color: #9f7aea;
}

.quick-action-red .action-icon {
    background: #fff5f5;
    color: #fc8181;
}

.action-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

/* Recent Activity */
.recent-activity-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.activity-icon {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.activity-project {
    background: #f6ad55;
}

.activity-announcement {
    background: #48bb78;
}

.activity-service {
    background: #9f7aea;
}

.activity-ad {
    background: #fc8181;
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.activity-time {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Services Management Page */
.dashboard-page-header {
    margin-bottom: 2rem;
}

.dashboard-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.dashboard-page-header p {
    color: #718096;
    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;
}

/* Settings Page Styles */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.settings-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.settings-description {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.setting-item:hover {
    border-color: #cbd5e0;
    background: #edf2f7;
}

.setting-info {
    flex: 1;
    margin-right: 2rem;
}

.setting-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.settings-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.settings-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.settings-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

/* 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: #4c51bf;
    color: white;
}

.btn-primary:hover {
    background: #434190;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 81, 191, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* 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;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

