/* Modern Premium Theme for ELEEGO Admin Panel */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body, html {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling */
.main-sidebar {
    background-color: #0b0f19 !important; /* Elegant dark navy */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background-color: #0b0f19 !important;
    padding: 1.25rem 1rem !important;
}

.brand-text {
    font-weight: 700 !important;
    letter-spacing: 1.2px;
    font-size: 1.15rem;
    color: #ffffff !important;
    text-transform: uppercase;
}

.sidebar {
    padding: 1.25rem 0.75rem !important;
}

.nav-sidebar .nav-item {
    margin-bottom: 0.25rem;
}

.nav-sidebar .nav-link {
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    color: #94a3b8 !important;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.nav-sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.nav-sidebar .nav-link:hover i {
    transform: translateX(2px);
}

.nav-sidebar .nav-item.menu-open > .nav-link,
.nav-sidebar .nav-item > .nav-link.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3) !important;
}

.nav-treeview .nav-link {
    padding-left: 2.25rem !important;
    font-size: 0.9rem;
    background: transparent !important;
}

.nav-treeview .nav-link:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.nav-treeview .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

/* Navbar Styling */
.main-header.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.75rem 1.5rem !important;
}

.main-header.navbar .nav-link {
    color: #64748b !important;
}

.main-header.navbar .nav-link:hover {
    color: #0f172a !important;
}

/* Content Area */
.content-wrapper {
    background-color: #f8fafc !important;
    padding: 1.5rem 1.5rem !important;
}

/* Premium Card Designs */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
}

.card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a;
}

.card-body {
    padding: 1.5rem !important;
}

/* Form Controls & Styling */
.form-control {
    border-radius: 10px !important;
    border: 1px solid #cbd5e1;
    padding: 0.625rem 0.875rem;
    height: auto;
    font-size: 0.95rem;
    color: #334155;
    background-color: #f8fafc;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    background-color: #ffffff;
}

label {
    font-weight: 600 !important;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Modern Premium Buttons */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-1px);
}

/* Modern Tables */
.table {
    border-collapse: separate !important;
    border-spacing: 0 0.5rem !important;
    width: 100% !important;
}

.table thead th {
    border: none !important;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.8px;
    padding: 1rem !important;
}

.table tbody tr {
    background-color: #ffffff !important;
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc !important;
    transform: scale(1.002);
}

.table td {
    padding: 1rem !important;
    vertical-align: middle !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155;
    font-size: 0.95rem;
}

/* Rounded image thumbnail */
.img-thumbnail {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Alert Notification Styling */
.alert {
    border-radius: 12px !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    font-weight: 500;
}

.alert-success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}

.alert-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

.alert-info {
    background-color: #eff6ff !important;
    color: #1e40af !important;
}

/* Beautiful Dashboard Metrics */
.metric-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 20px 25px -5px rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.metric-info h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
}

.metric-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}
