body {
    background-color: #080808 !important;
    color: #f5f5f5 !important;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar & Layout */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000;
    border-right: 1px solid #2a2a2a;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

/* Sidebar Nav Items */
.nav-item-custom {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 4px;
    color: #888888;
    text-decoration: none !important;
    border-radius: 12px;
    border-left: 4px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item-custom i {
    font-size: 1.2rem;
    margin-right: 15px;
    color: #666666;
    transition: color 0.3s ease;
}

/* Hover state */
.nav-item-custom:hover {
    background: rgba(255, 102, 0, 0.06) !important;
    color: #cccccc !important;
    text-decoration: none !important;
}

.nav-item-custom:hover i {
    color: #ff6600 !important;
}

/* Active (current page) state */
.nav-item-custom.active {
    background: rgba(255, 102, 0, 0.12) !important;
    color: #ffffff !important;
    border-left: 4px solid #ff6600 !important;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.08);
    text-decoration: none !important;
}

.nav-item-custom.active i {
    color: #ff6600 !important;
}

/* Ensure modal always appears above sidebar */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}


.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 30px;
    background-color: #080808;
}

/* Typography & Colors */
.text-orange {
    color: #ff6600 !important;
}

.bg-orange {
    background-color: #ff6600 !important;
}

.text-muted {
    color: #aaaaaa !important;
}

.fw-800 {
    font-weight: 800;
}

.x-small {
    font-size: 0.65rem;
}

/* Status Badges */
.badge-pendente {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.badge-parcial {
    background: rgba(241, 196, 15, 0.15) !important;
    color: #f1c40f !important;
    border: 1px solid rgba(241, 196, 15, 0.4);
}

.badge-pago {
    background: rgba(39, 174, 96, 0.15) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

.badge-aguardando {
    background: rgba(127, 140, 141, 0.15) !important;
    color: #95a5a6 !important;
    border: 1px solid rgba(127, 140, 141, 0.4);
}

.badge-em_producao {
    background: rgba(255, 102, 0, 0.15) !important;
    color: #ff6600 !important;
    border: 1px solid rgba(255, 102, 0, 0.4);
}

.badge-finalizado {
    background: rgba(39, 174, 96, 0.15) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(39, 174, 96, 0.4);
}

/* Cards & Containers */
.card {
    background-color: #121212 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Tables */
.table-dark {
    --bs-table-bg: #121212;
    --bs-table-border-color: #2a2a2a;
    color: #f5f5f5;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 102, 0, 0.05) !important;
}

/* Forms */
.form-control,
.form-select {
    background-color: #1a1a1a !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}

/* Placeholder visível */
.form-control::placeholder,
textarea::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.form-select option {
    background: #1a1a1a;
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #ff6600 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.2) !important;
    background-color: #202020 !important;
    color: #fff !important;
}

/* Labels mais claras */
label.x-small,
.text-muted.text-uppercase {
    color: #cccccc !important;
}

.input-group-text {
    background-color: #1a1a1a !important;
    border-color: #444 !important;
    color: #aaa !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff6600 0%, #ff4500 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
}

.btn-outline-orange {
    border: 1px solid #ff6600 !important;
    color: #ff6600 !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background: #ff6600 !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        left: -100%;
        top: 60px;
        height: calc(100vh - 60px);
        width: 100%;
        max-width: 300px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px 20px !important;
    }

    .mobile-navbar {
        display: flex !important;
        position: fixed;
        top: 0;
        width: 100%;
        height: 60px;
        background: #000;
        z-index: 1001;
        border-bottom: 1px solid #2a2a2a;
        padding: 0 20px;
        align-items: center;
        justify-content: space-between;
    }
}

.mobile-navbar {
    display: none;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: #ff6600;
    font-size: 1.8rem;
    cursor: pointer;
}