/* Dashboard Layout with Sidebar */

/* Main Wrapper */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #00796B 0%, #005a50 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.sidebar-brand:hover {
    opacity: 0.9;
    color: white;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sidebar-brand-text {
    font-weight: 700;
}

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

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #FFC107;
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #FFC107;
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-link-premium {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-left-color: #FFC107 !important;
    margin: 0.5rem 1rem;
    border-radius: 8px;
    padding-left: 1rem;
}

.sidebar-link-premium:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 193, 7, 0.2) 100%);
}

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

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.dashboard-topbar {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #495057;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.sidebar-toggle:hover {
    color: #00796B;
}

.topbar-search {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    max-width: 500px;
    flex: 1;
    transition: all 0.2s;
}

.topbar-search:focus-within {
    background: white;
    border-color: #00796B;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

.topbar-search i {
    color: #6c757d;
    margin-right: 0.75rem;
}

.topbar-search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    color: #495057;
}

.topbar-search-input::placeholder {
    color: #adb5bd;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #495057;
}

.topbar-user-btn:hover {
    background-color: #f8f9fa;
}

.topbar-user-btn i {
    font-size: 1.5rem;
}

.topbar-user-name {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Content Area */
.dashboard-content {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .topbar-search {
        max-width: 300px;
    }
    
    .topbar-user-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
    }
    
    .topbar-search {
        display: none;
    }
    
    .dashboard-topbar {
        padding: 0.5rem 1rem;
    }
}

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

.sidebar-overlay.show {
    display: block;
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.dashboard-sidebar.show {
    animation: slideInLeft 0.3s ease;
}

/* Custom Scrollbar for Sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Remove container constraints for dashboard pages */
.dashboard-content .container {
    max-width: 100%;
    padding: 0;
}

/* Adjust cards for full width */
.dashboard-content .card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Better spacing for content */
.dashboard-content > * + * {
    margin-top: 1.5rem;
}

/* Breadcrumb styling */
.dashboard-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.dashboard-content .breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

.dashboard-content .breadcrumb-item a {
    color: #00796B;
    text-decoration: none;
}

.dashboard-content .breadcrumb-item a:hover {
    text-decoration: underline;
}

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

/* Hide footer in dashboard layout */
.dashboard-wrapper ~ .main-footer {
    display: none;
}

/* Adjust body for dashboard */
body:has(.dashboard-wrapper) {
    overflow-x: hidden;
}

/* Better spacing for alerts in dashboard */
.dashboard-content .alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

