/* ==========================================================================
   MODERN PROFESSIONAL THEME OVERRIDE CSS (DENTALINK PUTIH-BIRU)
   Style: Minimalist White, Light Gray, Soft Blue
   File ini dimuat setelah incl/css/theme-default.css bila profile.theme == 'dentalink'
   ========================================================================== */

/* 0. IKON & SUBMENU SIDEBAR */
.x-navigation li > a .fa,
.x-navigation li > a .glyphicon {
    color: #424242;
}

.x-navigation li > ul li > a {
    border-bottom-color: #fff;
}

.x-navigation li > ul li > a:hover,
.x-navigation li > ul li.active > a {
    background: #fff;
    color: #1976d2;
}

/* 1. BACKGROUND & UTAMA
   Mengubah background hitam/gelap menjadi abu-abu muda yang bersih */
body, 
.page-container, 
.page-content {
    background-color: #f5f7fa !important; /* Abu-abu sangat muda */
    color: #5e6e82; /* Teks abu-abu tua agar elegan */
    font-family: 'Open Sans', sans-serif;
}

/* 2. SIDEBAR / MENU NAVIGASI (Kiri)
   Mengubah sidebar gelap menjadi Putih Bersih dengan aksen Biru Muda */
.page-sidebar, 
.x-navigation {
    background-color: #ffffff !important;
    border-right: 1px solid #e0e6ed; /* Garis pemisah halus */
}

/* Warna Teks Menu */
.x-navigation > li > a {
    color: #6c757d !important; /* Abu-abu medium */
    border-bottom: 1px solid #f8f9fa;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover & Active State (Saat menu dipilih/disorot) */
.x-navigation > li.active > a, 
.x-navigation > li:hover > a,
.x-navigation > li.xn-open > a {
    background-color: #e3f2fd !important; /* Biru sangat muda (Light Blue) */
    color: #1976d2 !important; /* Biru profesional */
    font-weight: 600;
    border-left: 4px solid #1976d2; /* Aksen garis biru di kiri */
}
.x-navigation > li > ul {
    background-color: #1976d2 !important; /* Biru sangat muda (Light Blue) */
    color: #5e6e82 !important; /* Abu2 profesional */
    font-weight: 400;
    border-left: 4px solid #1976d2; /* Aksen garis biru di kiri */
}
.x-navigation > li > ul > li > a {
    background-color: #fff !important; 
    color: #5e6e82 !important; /* Abu2 profesional */
    font-weight: 600;
    border-left: 4px solid #1976d2; /* Aksen garis biru di kiri */
}
.x-navigation.x-navigation-panel {
    height: 50px;
    /*max-height: auto;
    overflow: visible;*/
    background-color: #1976d2 !important; /* Biru sangat muda (Light Blue) */
}

/* Logo Area */
.x-navigation > li.xn-logo > a:first-child {
    background-color: #1976d2 !important; /* Biru Utama */
    border-bottom: none;
}

/* 3. PANEL / KOTAK KONTEN (Dashboard & Form)
   Membuat kotak menjadi putih, rounded, dan shadow lembut (Card Style) */
.panel {
    background: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03) !important; /* Shadow sangat halus */
    margin-bottom: 20px;
}

.panel .panel-heading {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f2f5 !important;
    color: #333;
    border-radius: 8px 8px 0 0;
}

.panel .panel-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

/* 4. TABEL (Data Transaksi)
   Tampilan tabel yang bersih dan lega */
.table {
    color: #555;
}

.table > thead > tr > th {
    background-color: #f1f5f9 !important; /* Header abu-abu muda */
    color: #444 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table > tbody > tr > td {
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 10px; /* Memberi jarak lebih lega */
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fafbfc !important; /* Zebra stripe sangat halus */
}

/* 5. FORM INPUT (Entry Data)
   Input field yang modern, flat, dan border biru saat diklik */
.form-control {
    background-color: #ffffff !important;
    border: 1px solid #e0e6ed !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    height: 32px; /* Sedikit lebih tinggi agar elegan */
    color: #333;
}

.form-control:focus {
    border-color: #64b5f6 !important; /* Biru muda saat aktif */
    background-color: #fff !important;
}

/* Label Form */
.control-label {
    color: #5e6e82;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 6. TOMBOL (Buttons)
   Mengubah tombol menjadi flat design */
.btn-primary, .btn-info {
    background-color: #1976d2 !important; /* Biru Profesional */
    border-color: #1976d2 !important;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover, .btn-info:hover {
    background-color: #1565c0 !important;
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.4);
}

.btn-default {
    background-color: #fff !important;
    border: 1px solid #dcdcdc !important;
    color: #666 !important;
}

/* 7. BOX MENU (Dashboard Shortcuts) 
   Mempercantik kotak-kotak menu di dashboard */
.widget {
    background: #ffffff !important;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    color: #555 !important;
}

.widget .widget-title, 
.widget .widget-subtitle, 
.widget .widget-int {
    color: #333 !important; /* Memastikan teks terbaca di background putih */
}

.widget.widget-default {
    background: #ffffff !important;
    border-top: 3px solid #1976d2; /* Aksen biru di atas */
}

/* Breadcrumb / Top Bar */
.breadcrumb {
    background: transparent !important;
    color: #888;
}

/* ==========================================================================
   LOGIN PAGE OVERRIDE
   Style: Clean White Card on Light Background
   ========================================================================== */

/* 1. CONTAINER UTAMA
   Mengubah background login dari gelap/gambar menjadi abu-abu muda bersih */
.login-container {
    background: #f5f7fa !important; /* Sama dengan warna body dashboard */
    background-image: none !important; /* Menghapus gambar background bawaan jika ada */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. KOTAK LOGIN (THE BOX)
   Membuat kotak putih melayang di tengah */
.login-container .login-box {
    background: #ffffff !important;
    border-radius: 12px !important; /* Sudut melengkung elegan */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important; /* Bayangan halus */
    padding: 30px !important;
    border: 1px solid #e0e6ed;
    width: 400px !important; /* Lebar ideal, menyesuaikan layar */
    max-width: 90%;
    margin-top: 0 !important; /* Reset margin bawaan agar benar-benar di tengah */
    float: none !important; /* Mencegah float error */
}

/* 3. LOGO & JUDUL DI HALAMAN LOGIN */
.login-container .login-box .login-logo {
    background-color: transparent !important;
    color: #1976d2 !important; /* Warna Biru Utama */
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.login-container .login-box .login-title {
    color: #5e6e82 !important; /* Abu-abu tua */
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

/* 4. FORM INPUT LOGIN
   Menyesuaikan input agar terlihat bersih di background putih */
.login-container .form-control {
    background: #f8f9fa !important; /* Input agak abu sedikit biar beda dgn kotak putih */
    border: 1px solid #dcdcdc !important;
    color: #333 !important;
    border-radius: 6px !important;
    height: 45px !important; /* Lebih tinggi agar mudah diklik */
    margin-bottom: 15px !important;
    font-size: 14px;
}

.login-container .form-control:focus {
    background: #ffffff !important;
    border-color: #1976d2 !important; /* Border biru saat diketik */
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1) !important;
}

/* Mengubah warna placeholder (teks bayangan di dalam input) */
.login-container .form-control::-webkit-input-placeholder { color: #aaa; }
.login-container .form-control:-moz-placeholder { color: #aaa; }

/* 5. TOMBOL LOGIN */
.login-container .btn-login,
.login-container .btn-block {
    background-color: #1976d2 !important;
    border-color: #1976d2 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    height: 45px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(25, 118, 210, 0.2);
    transition: all 0.3s;
    width: 100%; /* Tombol lebar penuh */
}

.login-container .btn-login:hover {
    background-color: #1565c0 !important;
    box-shadow: 0 6px 12px rgba(25, 118, 210, 0.3);
}

/* 6. LINK & FOOTER (Lupa Password / Copyright) 
   Memastikan teks terbaca (biasanya defaultnya putih, kita ubah jadi gelap) */
.login-container .login-footer,
.login-container .login-subtitle {
    color: #888 !important;
    text-align: center;
    margin-top: 15px;
}

.login-container a {
    color: #1976d2 !important; /* Link warna biru */
    text-decoration: none;
    font-weight: 600;
}

.login-container a:hover {
    text-decoration: underline;
}

/* Perbaikan khusus untuk struktur form-group di login */
.login-container .form-group {
    margin-bottom: 0px !important; /* Reset margin yang mengganggu */
}

