/* Professional UI - Luppo Admin */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sidebar-width: 240px;
    --sidebar-bg: #ffffff;
    --topbar-height: 64px;
    --primary-color: #000000;
    --accent-color: #4f46e5;
    --bg-light: #f9fafb;
    --border-color: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: none;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    padding: 1.5rem 0.75rem;
    list-style: none;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.nav-link i {
    font-size: 1.25rem;
}

/* Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-bar {
    height: var(--topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-bar-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-left: 0;
}

/* Sidebar Toggle (Mobile Only) */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    padding: 0;
    margin-right: 1rem;
    cursor: pointer;
}

.content-body {
    padding: 1.5rem 2rem;
}

/* Professional Components */
.card-professional {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.table-professional {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-professional th {
    background: #fcfcfd;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.table-professional td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* Filters */
.filter-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-label-pro {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-select-pro,
.form-input-pro {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    color: var(--text-primary);
}

/* Status Badges */
.badge-pro {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-success {
    background-color: #ecfdf5;
    color: #065f46;
}

/* Ensure dropdowns are visible */
.dropdown-menu {
    z-index: 1050 !important;
    margin-top: 0.5rem !important;
}

/* Buttons */
.btn-pro {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: var(--text-primary);
    transition: all 0.2s;
}

.btn-pro:hover {
    background: #f9fafb;
}

.btn-primary-pro {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
}

.btn-primary-pro:hover {
    background: #1f2937;
    color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .top-bar {
        padding: 0 1rem;
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

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