/* ==============================
   DKMATA - Professional Theme
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    background: #e2e8f0;
    color: #334155;
}

a {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

/* ---- SITE WRAPPER ---- */
#site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* ---- HEADER ---- */
#header {
    background: #1e3a5f;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 14px 24px;
}

.header-logo a {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ---- NAVIGATION ---- */
#menu_atas {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #152d4a;
    height: 40px;
    gap: 1px;
}

.menu {
    padding: 0 16px;
    height: 32px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.menu:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.menu font {
    color: #fff !important;
}

#login_button, #logout_button {
    margin-left: auto;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#login_button {
    background: #2563eb;
    color: #fff;
}

#login_button:hover {
    background: #1d4ed8;
}

#logout_button {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

#logout_button:hover {
    background: #dc2626;
}

/* ---- RUNNING TEXT ---- */
.running-text {
    padding: 6px 24px;
    background: #fef9c3;
    color: #854d0e;
    font-size: 12px;
    border-bottom: 1px solid #fde68a;
}

/* ---- MAIN LAYOUT ---- */
#main-content {
    padding: 20px;
    min-height: 500px;
    overflow: hidden;
}

.content-area {
    float: left;
    width: 775px;
}

.sidebar {
    float: left;
    width: 200px;
    margin-left: 25px;
}



/* ---- SIDEBAR IKLAN ---- */
.iklan {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iklan img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ---- FOOTER ---- */
#footer {
    padding: 20px 24px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

#footer a {
    color: #94a3b8;
}

#footer a:hover {
    color: #fff;
}

#design_by {
    font-size: 12px;
}

/* ---- FORMS ---- */
.form_keterangan {
    float: left;
    width: 150px;
    font-weight: 500;
    color: #374151;
    line-height: 34px;
}

.form_titik2 {
    float: left;
    width: 20px;
    text-align: center;
    line-height: 34px;
    color: #94a3b8;
}

.form_input {
    float: left;
    width: 400px;
    margin-bottom: 8px;
}

.form_input input,
.form_input select {
    width: 100%;
    max-width: 300px;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.form_input input:focus,
.form_input select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form_input textarea {
    width: 100%;
    max-width: 400px;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    min-height: 80px;
}

/* ---- BUTTONS ---- */
#submit {
    background: #2563eb;
    color: #fff;
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

#submit:hover {
    background: #1d4ed8;
}

/* ---- TABS ---- */
ul.tabs {
    display: flex;
    list-style: none;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
    padding: 0;
}

ul.tabs li {
    margin-bottom: -2px;
}

ul.tabs li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

ul.tabs li a:hover {
    color: #2563eb;
}

ul.tabs li.active a {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab_container {
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 16px;
    border-radius: 0 0 8px 8px;
}

.tab_content {
    font-size: 13px;
    width: 100%;
}

/* ---- TREEVIEW ---- */
#browser {
    font-size: 13px;
}

/* ---- PAGING ---- */
.holder {
    margin: 16px 0;
    text-align: center;
    clear: both;
    padding: 8px 0;
}

.holder a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    transition: all 0.2s;
    background: #fff;
}

.holder a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.holder a.jp-current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}

.holder a.jp-disabled {
    color: #cbd5e1;
    cursor: default;
    background: #f8fafc;
}

.holder a.jp-disabled:hover {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #d1d5db;
}

.holder a.jp-previous { margin-right: 8px; }
.holder a.jp-next { margin-left: 8px; }

.holder span {
    color: #94a3b8;
    font-size: 12px;
}

/* ---- MEMBER ---- */
.icon_member_menu {
    display: inline-block;
    width: 130px;
    height: 175px !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 18px 22px;
    cursor: pointer;
    transition: all 0.2s;
    background-repeat: no-repeat;
    background-position: center 22px;
    background-color: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
    vertical-align: top;
    padding: 130px 6px 8px;
}

.icon_member_menu img {
    display: none;
}

.icon_member_menu br {
    display: none;
}

.icon_member_menu:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 16px rgba(37,99,235,0.12);
}

#materi_kuliah_icon { background-image: url(../images/page/icon_materi_kuliah.jpg); }
#materi_kuliah_icon:hover { background-image: url(../images/page/icon_materi_kuliah_hover.jpg); }
#kalender_akademik_icon { background-image: url(../images/page/icon_kalender_akademik.jpg); }
#kalender_akademik_icon:hover { background-image: url(../images/page/icon_kalender_akademik_hover.jpg); }
#data_mahasiswa_icon { background-image: url(../images/page/icon_data_mahasiswa.jpg); }
#data_mahasiswa_icon:hover { background-image: url(../images/page/icon_data_mahasiswa_hover.jpg); }
#data_dosen_icon { background-image: url(../images/page/icon_data_dosen.jpg); }
#data_dosen_icon:hover { background-image: url(../images/page/icon_data_dosen_hover.jpg); }
#panduan_akademik_icon { background-image: url(../images/page/icon_panduan_akademik.png); }
#panduan_akademik_icon:hover { background-image: url(../images/page/icon_panduan_akademik_hover.png); }
#manual_prosedur_icon { background-image: url(../images/page/icon_manual_prosedur.png); }
#manual_prosedur_icon:hover { background-image: url(../images/page/icon_manual_prosedur_hover.png); }
#pedoman_proposal_icon { background-image: url(../images/page/icon_pedoman_proposal.png); }
#pedoman_proposal_icon:hover { background-image: url(../images/page/icon_pedoman_proposal_hover.png); }
#modul_kuliah_icon { background-image: url(../images/page/icon_modul_kuliah.png); }
#modul_kuliah_icon:hover { background-image: url(../images/page/icon_modul_kuliah_hover.png); }
#buku_ajar_icon { background-image: url(../images/page/icon_buku_ajar.png); }
#buku_ajar_icon:hover { background-image: url(../images/page/icon_buku_ajar_hover.png); }
#kurikulum_icon { background-image: url(../images/page/icon_kurikulum.jpg); }
#kurikulum_icon:hover { background-image: url(../images/page/icon_kurikulum_hover.jpg); }
#jadwal_operasi_icon { background-image: url(../images/page/icon_jadwal_operasi.jpg); }
#jadwal_operasi_icon:hover { background-image: url(../images/page/icon_jadwal_operasi_hover.jpg); }
#jurnal_icon { background-image: url(../images/page/icon_jurnal.jpg); }
#jurnal_icon:hover { background-image: url(../images/page/icon_jurnal_hover.jpg); }
#profil_mahasiswa_icon { background-image: url(../images/page/icon_profil_mahasiswa.jpg); }
#profil_mahasiswa_icon:hover { background-image: url(../images/page/icon_profil_mahasiswa_hover.jpg); }
#pengumuman_icon { background-image: url(../images/page/icon_pengumuman.jpg); }
#pengumuman_icon:hover { background-image: url(../images/page/icon_pengumuman_hover.jpg); }
#resume_pasien_icon { background-image: url(../images/page/icon_resume_pasien.jpg); }
#resume_pasien_icon:hover { background-image: url(../images/page/icon_resume_pasien_hover.jpg); }

#member_menu_button,
#kalender_akademik_button,
#jadwal_operasi_button,
#resume_pasien_button {
    float: left;
    padding: 5px 14px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

#member_menu_button:hover,
#kalender_akademik_button:hover,
#jadwal_operasi_button:hover,
#resume_pasien_button:hover {
    background: #1d4ed8;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
}

.member_logo {
    width: 150px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.member_caption {
    padding: 6px;
    font-size: 12px;
    color: #475569;
}

/* ---- CONTACT FORM ---- */
#kontak_kata {
    line-height: 2;
    padding: 10px 0;
}

#form_contact {
    width: 100%;
    max-width: 450px;
}

/* ---- JADWAL OPERASI ---- */
.th_jadwal_operasi,
.td_jadwal_operasi {
    float: left;
    padding: 8px 6px;
    font-size: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.th_jadwal_operasi {
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}

.tanggal_jadwal_operasi {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    clear: both;
}

/* ---- LIST ---- */
.list_nama {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
}

.list_cek {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
}

/* ---- SCROLLPANE ---- */
.scroll-pane {
    max-height: 500px;
    overflow-y: auto;
}

/* ---- LOGIN PAGE WRAP (inline from includes/login.php) ---- */
.login-page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 20px;
}

/* ---- MEMBER LOGIN FORM ---- */
#form_login {
    position: relative;
}

#input_login,
#input_password {
    margin-bottom: 10px;
}

#capcay {
    margin-bottom: 10px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    padding: 0 0 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

.breadcrumb a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumb span.sep {
    color: #94a3b8;
    margin: 0 6px;
    font-weight: 300;
}

.breadcrumb .current {
    color: #1e293b;
    font-weight: 600;
}

/* ---- MISC ---- */
#list_wrapper {
    margin-top: 10px;
}

#kontak_capcay {
    margin-bottom: 8px;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .content-area {
        float: none;
        width: 100%;
    }
    .sidebar {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
    .header-inner {
        text-align: center;
        justify-content: center;
    }
    #menu_atas {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 4px;
    }
    .menu {
        padding: 6px 10px;
        font-size: 11px;
    }
    #login_button, #logout_button {
        margin-left: 0;
    }
    .form_keterangan,
    .form_titik2,
    .form_input {
        float: none;
        width: 100%;
    }
    .form_input input,
    .form_input select {
        max-width: 100%;
    }
}
