﻿/* ENTERPRISE DASHBOARD STRUCTURE */
/* Based on professional dark theme layout */

.dashboard-enterprise-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafd 0%, #f0f5ff 100%);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Sidebar - Professional Version */
.enterprise-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0592CA 0%, #31c6ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-logo-text {
    flex: 1;
}

    .sidebar-logo-text h2 {
        font-size: 1.25rem;
        font-weight: 800;
        color: #072447;
        margin: 0;
        line-height: 1.2;
    }

    .sidebar-logo-text span {
        color: #0592CA;
    }

    .sidebar-logo-text p {
        font-size: 0.75rem;
        color: #60789c;
        margin: 0;
        opacity: 0.8;
    }

/* Sidebar Navigation */
.sidebar-nav-section {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.sidebar-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #60789c;
    font-weight: 600;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .sidebar-nav-item:hover {
        background: linear-gradient(90deg, rgba(5, 146, 202, 0.05) 0%, rgba(5, 146, 202, 0.02) 100%);
        color: #0592CA;
        border-left-color: rgba(5, 146, 202, 0.3);
    }

    .sidebar-nav-item.active {
        background: linear-gradient(90deg, rgba(5, 146, 202, 0.1) 0%, rgba(5, 146, 202, 0.05) 100%);
        color: #0592CA;
        border-left-color: #0592CA;
        font-weight: 600;
    }

    .sidebar-nav-item i {
        width: 20px;
        text-align: center;
        font-size: 1rem;
    }

    .sidebar-nav-item span {
        font-size: 0.875rem;
        font-weight: 500;
    }

    .sidebar-nav-item .badge {
        margin-left: auto;
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
        background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
        color: white;
    }

/* Sidebar Footer - User Profile */
.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #31c6ff 0%, #4fe0be 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #072447;
    font-size: 0.875rem;
    display: block;
}

.user-role {
    font-size: 0.75rem;
    color: #60789c;
    display: block;
}

/* Main Content Area */
.enterprise-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Bar */
.top-navbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #4b5563;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
}

    .menu-toggle:hover {
        background: #f3f4f6;
    }

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #072447;
    margin: 0;
}

.page-title p {
    font-size: 0.875rem;
    color: #60789c;
    margin: 0.25rem 0 0 0;
}

/* Top Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
}

.search-input {
    width: 280px;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #0592CA;
        background: white;
        box-shadow: 0 0 0 3px rgba(5, 146, 202, 0.1);
    }

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: #4b5563;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
}

    .notification-btn:hover {
        background: #f3f4f6;
    }

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 2px solid white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background: #f8fafd;
}

/* Status Banner */
.status-banner {
    background: linear-gradient(135deg, white 0%, #f8fafd 100%);
    border: 1px solid #e5e7eb;
    border-left: 4px solid #4fe0be;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 224, 190, 0.1) 0%, rgba(79, 224, 190, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fe0be;
    font-size: 1.5rem;
}

.status-content {
    flex: 1;
    margin-left: 1.5rem;
}

.status-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #072447;
    margin: 0 0 0.5rem 0;
}

.status-subtitle {
    font-size: 0.875rem;
    color: #60789c;
    margin: 0;
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .enterprise-sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

        .enterprise-sidebar.mobile-open {
            transform: translateX(0);
        }

    .enterprise-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .status-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .status-content {
        margin-left: 0;
    }

    .search-input {
        width: 150px;
    }
}
