/*
 * stylish.css
 * Gaya Klasik/Akademik UNTAN dengan Unsur Khatulistiwa
 * Menggunakan file gambar terpisah (bukan sprite)
 */

/* --- Variabel CSS Global --- */
:root {
    --color-background-primary: #f5eedc;       /* Krem */
    --color-text-primary: #3d342f;             /* Coklat Tua */
    --color-decoration: #7c6858;               /* Warna Dekorasi/Border */
    --color-khatulistiwa: #9b7200;             /* Coklat Keemasan/Kuning Tua */
    --color-accent-blue: #17a2b8;              
    --color-accent-green: #28a745;             
    --color-button-default: #6c757d;           
    --font-serif-primary: 'Georgia', 'Times New Roman', serif;
}

/* --- Pengaturan Dasar Halaman --- */
body {
    background-color: var(--color-background-primary);
    color: var(--color-text-primary);
    font-family: var(--font-serif-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* --- Header Aplikasi --- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background-color: #fcf8f0; /* Warna krem yang sedikit lebih terang */
    border-bottom: 3px solid var(--color-khatulistiwa);
    margin-bottom: 20px;
}

.app-header .logo {
    height: 70px;
    width: auto;
    margin-right: 20px;
}

.app-header .title-group {
    text-align: left;
}

.app-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.2;
}

.app-header p {
    margin: 0;
    font-size: 1.2em;
    color: var(--color-decoration);
}
/* ---------------------------------------------------- */
/* --- Dekorasi Gambar Terpisah --- */
/* ---------------------------------------------------- */

/* --- Sudut Kanan Atas --- */
.page-corner-top-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: url('kananatas.jpg') no-repeat top right;
    background-size: contain;
    z-index: 10;
}

/* --- Sudut Kiri Atas --- */
.page-corner-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: url('kiriatas.jpg') no-repeat top left;
    background-size: contain;
    z-index: 10;
}

/* --- Dekorasi Footer/Bawah --- */
.footer-decoration {
    width: 90%;
    max-width: 1000px;
    height: 150px;
    margin: 40px auto 0;
    background: url('bawah.jpg') no-repeat center bottom;
    background-size: contain;
    display: block;
    position: relative;
}

/* Jika ingin pakai sudut bawah juga */
.page-corner-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: url('bawah.jpg') no-repeat left bottom;
    background-size: contain;
    z-index: 10;
}
.page-corner-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: url('bawah.jpg') no-repeat right bottom;
    background-size: contain;
    z-index: 10;
}

/* ---------------------------------------------------- */
/* --- Gaya Konten dan Fungsionalitas --- */
/* ---------------------------------------------------- */

.container {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px 40px;
    background-color: white;
    border: 1px solid var(--color-decoration);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

/* Judul */
h2, h3 {
    color: var(--color-text-primary);
    font-weight: normal;
}

h2 {
    border-bottom: 2px solid var(--color-decoration);
    padding-bottom: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
    margin-top: 25px;
    position: relative;
    padding-bottom: 10px;
}
h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--color-khatulistiwa);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Item Detail */
.detail-group { margin-bottom: 25px; }
.detail-item { margin-bottom: 8px; display: flex; }
.detail-item strong { 
    width: 200px; 
    font-weight: bold;
    color: var(--color-text-primary);
    flex-shrink: 0; 
}
.detail-item span { color: #555; }

/* Tombol & Link */
.back-button { 
    display: inline-block; 
    margin-bottom: 20px;
    text-decoration: none; 
    background-color: var(--color-button-default); 
    color: white; 
    padding: 8px 15px; 
    border-radius: 4px;
    transition: background-color 0.2s;
}
.back-button:hover { background-color: #5a6268; }

.jurnal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.jurnal-link {
    background-color: var(--color-accent-blue);
    padding: 8px 12px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}
.jurnal-link:hover {
    background-color: #138496;
}

/* Form Penilaian */
.penilaian-form { 
    border: 1px solid var(--color-decoration); 
    padding: 20px; 
    border-radius: 5px; 
    background-color: #fffaf0;
}
.form-label { 
    font-weight: bold; 
    margin-top: 15px; 
    display: block; 
    color: var(--color-text-primary); 
}
.form-select, .form-textarea { 
    width: 100%; 
    padding: 10px; 
    margin-top: 5px; 
    border-radius: 4px; 
    border: 1px solid #ccc; 
    font-family: var(--font-serif-primary);
    color: var(--color-text-primary);
}
.form-textarea { height: 80px; resize: vertical; }

.form-button-submit { 
    margin-top: 20px; 
    padding: 10px 20px; 
    background-color: var(--color-accent-green); 
    color: white; 
    border: none; 
    cursor: pointer; 
    border-radius: 4px; 
    font-size: 16px; 
    transition: background-color 0.2s; 
}
.form-button-submit:hover { 
    background-color: #218838; 
}

/* Tombol Umum */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.9em;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Tombol Logout */
.logout-link {
    background-color: #dc3545;
    color: #fff;
}
.logout-link:hover {
    background-color: #c82333;
}

/* Tombol Detail */
.detail-btn {
    background-color: #007bff;
    color: #fff;
}
.detail-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Dokumen List */
ul.document-list { list-style-type: none; padding-left: 0; }
ul.document-list li { margin-bottom: 8px; }
ul.document-list a { 
    text-decoration: underline; 
    color: var(--color-decoration); 
    transition: color 0.2s; 
}
ul.document-list a:hover { color: var(--color-text-primary); }

/* Halaman Detail Jurnal */
.header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--color-text-primary);
}

.content {
    padding: 25px;
}

.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-text-primary);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.detail-item {
    display: flex;
    flex-wrap: wrap;
    
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95em;
}
.detail-label {
    font-weight: 600;
    color: #555;
    flex-basis: 200px;
}
.detail-value {
    flex-basis: calc(100% - 220px);
    color: #212529;
    word-break: break-word;
}

/* Tombol kembali */
.back-btn {
    background-color: var(--color-button-default);
    color: #fff;
}
.back-btn:hover {
    background-color: #5a6268;
}

/* Tombol pencarian (Scopus, Sinta) */
.search-btn {
    background-color: #007bff;
    color: #fff;
    margin-left: 8px;
}
.search-btn:hover {
    background-color: #0056b3;
}
.detail-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.detail-label {
    flex: 0 0 220px;   /* label lebar tetap */
    font-weight: 600;
    color: #333;
}

.detail-value {
    flex: 1;
    color: #212529;
    word-break: break-word;
}
/* --- Style untuk Notifikasi --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background-color: #28a745; /* Hijau */
}

.alert-danger {
    background-color: #dc3545; /* Merah */
}
