:root {
    --primary: #FB9C28;
    --primary-glow: rgba(251, 156, 40, 0.25);
    --primary-gradient: linear-gradient(135deg, #FB9C28 0%, #FF7A00 100%);
    --bg-dark: #090B0E;
    --bg-card: rgba(18, 22, 30, 0.7);
    --bg-card-hover: rgba(24, 29, 40, 0.85);
    --border-color: rgba(251, 156, 40, 0.12);
    --border-focus: rgba(251, 156, 40, 0.5);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --white: #FFFFFF;
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #FBBF24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.12);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.12);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --header-height: 80px;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--header-height);
    background-image: 
        radial-gradient(at 0% 0%, rgba(251, 156, 40, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(251, 156, 40, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-red {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Wrapper */
.inv-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.inv-main {
    flex: 1;
    padding: 2.5rem;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed {
    --sidebar-width: 0px;
}

/* Header */
.inv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 12, 16, 0.85);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.official-logo {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(251, 156, 40, 0.08);
    border-color: rgba(251, 156, 40, 0.3);
}

.user-profile span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
}

.header-actions > span {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Sidebar */
.inv-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: rgba(7, 8, 11, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 900;
    backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

body.sidebar-collapsed .inv-sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.sidebar-brand-area {
    padding: 0 2rem 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 1.5rem;
}

.sidebar-logo {
    max-height: 38px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.sidebar-link {
    padding: 1rem 2rem;
    margin: 4px 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(251, 156, 40, 0.06);
    color: var(--primary);
    padding-left: 2.25rem;
}

.sidebar-link.active {
    background: rgba(251, 156, 40, 0.1);
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
    box-shadow: inset 5px 0 15px rgba(251, 156, 40, 0.05);
}

.sidebar-link .icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.sidebar-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    position: relative;
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Components */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(251, 156, 40, 0.25);
    box-shadow: 0 12px 40px rgba(251, 156, 40, 0.05), var(--shadow);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.card:hover::before {
    background: var(--primary-gradient);
}

/* Custom Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 0.8rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 156, 40, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 156, 40, 0.45), 0 0 10px rgba(251, 156, 40, 0.2);
}

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

/* Badges */
.badge {
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Table */
.inv-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.inv-table th {
    text-align: left;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.9rem;
}

.inv-table tr:last-child td {
    border-bottom: none;
}

.inv-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

/* Geometric Decoration */
.geometric-line {
    height: 4px;
    width: 80px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 10px rgba(251, 156, 40, 0.3);
}

/* Inputs & Form Elements global styles */
input[type="text"], input[type="password"], select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus {
    border-color: var(--primary);
    background: rgba(251, 156, 40, 0.03);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input[readonly] {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .inv-sidebar {
        width: 80px;
        align-items: center;
    }
    .inv-sidebar .label, .inv-sidebar .sidebar-brand-area {
        display: none;
    }
    .inv-sidebar .sidebar-link {
        padding: 1rem;
        margin: 4px;
        justify-content: center;
    }
    .inv-sidebar .sidebar-link:hover {
        padding-left: 1rem;
    }
    .inv-main {
        margin-left: 80px;
        width: calc(100% - 80px);
        padding: 1.5rem;
    }
    :root {
        --sidebar-width: 80px;
    }
}

@media (max-width: 768px) {
    .inv-container {
        flex-direction: column;
    }
    .inv-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 0.5rem;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .inv-sidebar .sidebar-footer {
        display: none;
    }
    .inv-sidebar nav, .inv-sidebar ul {
        display: flex;
        width: 100%;
        justify-content: space-around;
    }
    .inv-main {
        margin-left: 0;
        width: 100%;
    }
    .inv-header {
        position: static;
        padding: 0 1rem;
    }
    body {
        padding-top: 0;
    }
}