/* ===================================
   GLOBAL DARK THEME - MINIA DASHBOARD
   Color Scheme:
   - Background: #0A0A0B, #0F0F11
   - Headers: #231128
   - Borders: #584662, #3D2D4C
   - Text: #B5ADBC (light), #DBCCEB (bright)
   - Primary: #580D72
   =================================== */

/* Body & Base */
body {
    background-color: #0A0A0B !important;
    color: #B5ADBC !important;
}

.main-content {
    background-color: #0A0A0B !important;
}

.page-content {
    background-color: #0A0A0B !important;
    padding-top: 90px;
}

.container-fluid {
    background-color: transparent !important;
}

/* ===================================
   TOPBAR
   =================================== */
#page-topbar {
    background: #0F0F11 !important;
    border-bottom: 0.5px solid #584662 !important;
    position: fixed;
    top: 0;
    right: 0;
    left: 250px;
    z-index: 1001;
    height: 70px;
    transition: left 0.3s ease;
}

body.vertical-collpsed #page-topbar {
    left: 70px;
}

#page-topbar .navbar-header {
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
}

#page-topbar .header-item {
    background: transparent;
    border: none;
    color: #B5ADBC;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

#page-topbar .header-item:hover {
    color: #DBCCEB;
    background: rgba(88, 13, 114, 0.1);
}

#page-topbar .dropdown-menu {
    background: #0F0F11;
    border: 1px solid #584662;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#page-topbar .dropdown-item {
    color: #B5ADBC;
    transition: all 0.3s ease;
}

#page-topbar .dropdown-item:hover {
    background: rgba(88, 13, 114, 0.2);
    color: #DBCCEB;
}

/* ===================================
   PAGE TITLE & BREADCRUMB
   =================================== */
.page-title-box {
    background: transparent !important;
    padding: 20px 0;
}

.page-title-box h4 {
    color: #DBCCEB !important;
    font-size: 18px;
    font-weight: 600;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    color: #B5ADBC;
    font-size: 13px;
}

.breadcrumb-item a {
    color: #B5ADBC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #DBCCEB;
}

.breadcrumb-item.active {
    color: #DBCCEB;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #584662;
    content: "›";
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: #0F0F11 !important;
    border: 0.5px solid #584662 !important;
    border-radius: 8px !important;
    margin-bottom: 24px;
}

.card-header {
    background: #231128 !important;
    border-bottom: 1px solid #584662 !important;
    padding: 16px 20px;
}

.card-title {
    color: #DBCCEB !important;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-body {
    background: #0F0F11 !important;
    color: #B5ADBC;
    padding: 20px;
}

/* ===================================
   TABLES
   =================================== */
.table {
    background: #0F0F11 !important;
    color: #DBCCEB !important;
    border: none !important;
    margin-bottom: 0 !important;
}

.table thead {
    background: #231128 !important;
}

.table thead th {
    background: #231128 !important;
    color: #DBCCEB !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 15px !important;
    border: none !important;
    border-bottom: 1px solid #584662 !important;
}

.table tbody td {
    background: #0F0F11 !important;
    color: #B5ADBC !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 12px 15px !important;
    border: none !important;
    border-bottom: 1px solid #3D2D4C !important;
    vertical-align: middle !important;
}

.table tbody tr:hover td {
    background: rgba(61, 45, 76, 0.3) !important;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
    background: #580D72 !important;
    border: none !important;
    color: #DBCCEB !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6c1487 !important;
    color: #DBCCEB !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 13, 114, 0.3);
}

.btn-secondary {
    background: rgba(61, 45, 76, 0.34) !important;
    border: 1px solid #3D2D4C !important;
    color: #B5ADBC !important;
}

.btn-secondary:hover {
    background: rgba(88, 13, 114, 0.2) !important;
    color: #DBCCEB !important;
}

.btn-success {
    background: #038B3F !important;
    border: none !important;
    color: #fff !important;
}

.btn-danger {
    background: #E30505 !important;
    border: none !important;
    color: #fff !important;
}

/* ===================================
   FORMS
   =================================== */
.form-control,
.form-select {
    background: rgba(61, 45, 76, 0.34) !important;
    border: 1px solid #3D2D4C !important;
    color: #DBCCEB !important;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(61, 45, 76, 0.5) !important;
    border-color: #580D72 !important;
    box-shadow: 0 0 0 2px rgba(88, 13, 114, 0.2) !important;
    color: #DBCCEB !important;
}

.form-control::placeholder {
    color: #B5ADBC;
    opacity: 0.6;
}

.form-label {
    color: #DBCCEB;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ===================================
   BADGES
   =================================== */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

.badge-active,
.badge-success {
    background: rgba(3, 139, 63, 0.15);
    color: #038B3F;
}

.badge-inactive,
.badge-danger {
    background: rgba(227, 5, 5, 0.15);
    color: #E30505;
}

/* ===================================
   ALERTS
   =================================== */
.alert {
    border-radius: 6px;
    border: none;
}

.alert-success {
    background: rgba(3, 139, 63, 0.15) !important;
    border: 1px solid #038B3F !important;
    color: #DBCCEB !important;
}

.alert-danger {
    background: rgba(227, 5, 5, 0.15) !important;
    border: 1px solid #E30505 !important;
    color: #DBCCEB !important;
}

.alert-info {
    background: rgba(88, 13, 114, 0.15) !important;
    border: 1px solid #580D72 !important;
    color: #DBCCEB !important;
}

.btn-close {
    filter: invert(1) brightness(2);
}

/* ===================================
   DATATABLES
   =================================== */
.dataTables_wrapper {
    background: #0F0F11 !important;
    padding: 15px !important;
    color: #B5ADBC !important;
}

.dataTables_length label,
.dataTables_filter label {
    color: #B5ADBC !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.dataTables_filter input {
    background: rgba(61, 45, 76, 0.34) !important;
    border: 1px solid #3D2D4C !important;
    border-radius: 6px !important;
    color: #DBCCEB !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    margin-left: 8px !important;
}

.dataTables_filter input:focus {
    outline: none !important;
    border-color: #580D72 !important;
    box-shadow: 0 0 0 2px rgba(88, 13, 114, 0.2) !important;
}

.dataTables_length select {
    background: rgba(61, 45, 76, 0.34) !important;
    border: 1px solid #3D2D4C !important;
    border-radius: 6px !important;
    color: #DBCCEB !important;
    padding: 6px 30px 6px 12px !important;
    font-size: 13px !important;
    margin: 0 8px !important;
}

.dataTables_paginate .paginate_button {
    background: rgba(61, 45, 76, 0.34) !important;
    border: 1px solid #3D2D4C !important;
    color: #DBCCEB !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
}

.dataTables_paginate .paginate_button:hover {
    background: rgba(88, 13, 114, 0.5) !important;
    border-color: #580D72 !important;
    color: #DBCCEB !important;
}

.dataTables_paginate .paginate_button.current {
    background: #580D72 !important;
    border-color: #580D72 !important;
    color: #DBCCEB !important;
}

.dataTables_info {
    color: #B5ADBC !important;
    font-size: 13px !important;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #0F0F11 !important;
    border-top: 0.5px solid #584662 !important;
    color: #B5ADBC !important;
    padding: 20px 0 !important;
    /* margin-left: 250px; */
    transition: margin-left 0.3s ease;
}

body.vertical-collpsed .footer {
    margin-left: 70px;
}

.footer a {
    color: #DBCCEB !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer a:hover {
    color: #580D72 !important;
    text-decoration: underline !important;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 992px) {
    #page-topbar {
        left: 0 !important;
    }
    
    .page-content {
        padding-top: 80px;
    }
    
    .main-content,
    .footer {
        margin-left: 0 !important;
    }
}

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0F0F11;
}

::-webkit-scrollbar-thumb {
    background: #3D2D4C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #580D72;
}