/* ============================================
   MioPlus - Tourism Agency Management System
   Custom Styles
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 60px;
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary-color: #5f6368;
    --success-color: #0d904f;
    --danger-color: #d93025;
    --warning-color: #f9ab00;
    --info-color: #1a73e8;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --body-bg: #f1f5f9;
    --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: #1e293b;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a73e8 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,115,232,0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,115,232,0.2) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.login-logo-dark {
    background: #1e293b;
    padding: 15px 30px;
    border-radius: 12px;
    display: inline-block;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-title h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-title p {
    color: #64748b;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.login-form .form-control {
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px 10px 44px;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    background-color: #f8fafc;
    max-width: 100%;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
    background-color: #fff;
}

.login-form .input-icon {
    position: absolute;
    left: 14px;
    top: 42px;
    color: #94a3b8;
    font-size: 1rem;
}

.login-form .btn-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.login-form .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

.login-form .btn-login:active {
    transform: translateY(0);
}

.login-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.login-extras a {
    color: var(--primary-color);
    font-weight: 500;
}

.login-extras a:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1040;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: var(--topbar-height);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-logo img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.sidebar-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-logo span {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

.sidebar.collapsed .sidebar-toggle {
    margin: 0 auto;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.nav-section-title {
    padding: 12px 20px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-section-title {
    text-align: center;
    padding: 12px 5px 6px;
    font-size: 0;
}

.sidebar.collapsed .nav-section-title::after {
    content: '•••';
    font-size: 0.6rem;
    color: #475569;
}

.nav-item {
    padding: 2px 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--sidebar-text);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none !important;
    position: relative;
}

.nav-link:hover {
    color: var(--sidebar-text-active);
    background: var(--sidebar-hover);
}

.nav-link.active {
    color: var(--sidebar-text-active);
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-link .nav-text {
    transition: opacity var(--transition-speed);
    overflow: hidden;
}

.sidebar.collapsed .nav-link .nav-text {
    opacity: 0;
    width: 0;
}

.nav-link .nav-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-link[aria-expanded="true"] .nav-arrow {
    transform: rotate(90deg);
}

.sidebar.collapsed .nav-link .nav-arrow {
    display: none;
}

/* Submenu */
.nav-submenu {
    padding-left: 15px;
}

.nav-submenu .nav-link {
    font-size: 0.85rem;
    padding: 8px 12px 8px 22px;
    color: #94a3b8;
}

.nav-submenu .nav-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #475569;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s;
}

.nav-submenu .nav-link:hover::before,
.nav-submenu .nav-link.active::before {
    background: var(--primary-color);
}

.nav-submenu .nav-link.active {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.sidebar.collapsed .nav-submenu {
    display: none !important;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
    white-space: nowrap;
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-user-info {
    opacity: 0;
    width: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: #64748b;
}

/* ============================================
   TOPBAR STYLES
   ============================================ */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: left var(--transition-speed) ease;
}

.sidebar.collapsed ~ .main-wrapper .topbar {
    left: var(--sidebar-collapsed-width);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #475569;
    cursor: pointer;
    padding: 5px;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 300px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px 0 40px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all var(--transition-speed);
    max-width: 100%;
}

.topbar-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
    background: #fff;
    outline: none;
}

.topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.topbar-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.topbar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.topbar-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 8px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.topbar-user:hover {
    background: #f1f5f9;
}

.topbar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.topbar-user-info {
    line-height: 1.3;
}

.topbar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.topbar-user-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
    min-height: 100vh;
}

.sidebar.collapsed ~ .main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

.main-content {
    padding: calc(var(--topbar-height) + 24px) 24px 24px;
}

/* ---- Page Header ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.page-breadcrumb a {
    color: var(--primary-color);
}

.page-breadcrumb .separator {
    color: #cbd5e1;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.04);
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.stat-card-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-card-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.stat-card-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.stat-card-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.stat-card-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 20px;
}

.stat-card-trend.up {
    background: #dcfce7;
    color: #16a34a;
}

.stat-card-trend.down {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================
   CARDS
   ============================================ */
.mio-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,.04);
    overflow: hidden;
}

.mio-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mio-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mio-card-title i {
    color: var(--primary-color);
}

.mio-card-body {
    padding: 24px;
}

.mio-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* ============================================
   FORM STYLES
   ============================================ */
.mio-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mio-form .form-control,
.mio-form .form-select {
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background-color: #fff;
    max-width: 100%;
}

.mio-form .form-control:focus,
.mio-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.mio-form .form-control:read-only {
    background-color: #f8fafc;
}

.mio-form textarea.form-control {
    height: auto;
    min-height: 80px;
}

.mio-form .input-group-text {
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    border-radius: 8px;
}

/* Section headers in forms */
.form-section {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.form-section-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-section-body {
    padding: 24px;
}

.form-section-actions {
    display: flex;
    gap: 6px;
}

.form-section-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-mio-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-mio-primary:hover {
    color: #fff;
    box-shadow: 0 4px 15px rgba(26,115,232,0.35);
    transform: translateY(-1px);
}

.btn-mio-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-mio-success:hover {
    color: #fff;
    box-shadow: 0 4px 15px rgba(22,163,74,0.35);
    transform: translateY(-1px);
}

.btn-mio-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-mio-danger:hover {
    color: #fff;
    box-shadow: 0 4px 15px rgba(220,38,38,0.35);
    transform: translateY(-1px);
}

.btn-mio-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-mio-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* ============================================
   PAGE ACTION BAR (like Vize Ekle header)
   ============================================ */
.page-action-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.page-action-bar h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.page-action-bar .action-info {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.page-action-bar .action-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-action-bar .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.2s;
}

.page-action-bar .btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Tab navigation */
.mio-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    border-bottom: 2px solid #e2e8f0;
}

.mio-tab {
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-decoration: none !important;
}

.mio-tab:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.mio-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--primary-light);
}

/* ============================================
   DATATABLE CUSTOM STYLES
   ============================================ */
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    max-width: 100%;
}

.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}

table.dataTable thead th {
    border-bottom: 2px solid #e2e8f0 !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    padding: 14px 16px !important;
    background: #f8fafc;
}

table.dataTable tbody td {
    padding: 12px 16px !important;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
}

table.dataTable tbody tr:hover {
    background: #f0f7ff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.processing {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.approved {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.pending {
    background: #e0e7ff;
    color: #4f46e5;
}

.status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================
   CHARTS WRAPPER
   ============================================ */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    border-radius: var(--border-radius);
    background: #fff;
    border: 2px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    color: inherit;
}

.quick-action:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.quick-action i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.quick-action span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

/* ============================================
   RECENT ACTIVITY
   ============================================ */
.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.activity-desc {
    font-size: 0.82rem;
    color: #64748b;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .topbar {
        left: 0 !important;
    }

    .topbar-mobile-toggle {
        display: block;
    }

    .topbar-search input {
        width: 200px;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
    }

    .sidebar.mobile-open ~ .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: calc(var(--topbar-height) + 16px) 12px 16px;
    }

    .topbar-search {
        display: none;
    }

    .topbar-user-info {
        display: none;
    }

    .page-action-bar {
        flex-direction: column;
        text-align: center;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 1.4rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary-mio {
    color: var(--primary-color) !important;
}

.bg-primary-mio {
    background-color: var(--primary-color) !important;
}

.rounded-mio {
    border-radius: var(--border-radius) !important;
}

.shadow-mio {
    box-shadow: var(--card-shadow) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
