/* ==========================================================================
   GDL Digital Library — Classic Desktop Stylesheet + Responsive Adaptation
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body.gdl-desktop {
    margin: 0;
    padding: 0;
    background-color: #f6f7f4;
    color: #222222;
    font-family: Verdana, Tahoma, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.48;
}

a {
    color: #367213;
    text-decoration: none;
}
a:hover {
    color: #1f4b06;
    text-decoration: underline;
}

/* Top Utility Bar */
.gdl-topbar {
    background: linear-gradient(180deg, #4b7517 0%, #58861e 100%);
    color: #ffffff;
    border-bottom: 1px solid #3c5f10;
    font-size: 11.5px;
}
.gdl-topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.gdl-topbar a {
    color: #ffffff;
    text-decoration: none;
}
.gdl-topbar a:hover {
    color: #e8ffbe;
    text-decoration: underline;
}
.gdl-topbar .sep {
    color: #9ed450;
    margin: 0 3px;
}
.gdl-topbar-left {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.gdl-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.gdl-mobile-switch {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 3px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff !important;
}
.gdl-mobile-switch:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
}

/* Main Lime Green Brand Header */
.gdl-brandbar {
    background: linear-gradient(180deg, #98cf38 0%, #89c32c 55%, #7db722 100%);
    border-top: 1px solid #b6e266;
    border-bottom: 2px solid #6fa61c;
    position: relative;
    overflow: hidden;
}
.gdl-brandbar-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 14px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.gdl-logo-wrap {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-left: 4px;
    text-decoration: none !important;
}
.gdl-logo-watermark {
    position: absolute;
    left: -4px;
    top: -16px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.27);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}
.gdl-logo-main {
    position: relative;
    z-index: 1;
    margin-left: 92px;
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #466e14;
    text-shadow:
        -1.5px -1.5px 0 #ffffff,
         1.5px -1.5px 0 #ffffff,
        -1.5px  1.5px 0 #ffffff,
         1.5px  1.5px 0 #ffffff,
         0      2px   4px rgba(0, 0, 0, 0.32);
}
.gdl-logo-sub {
    position: relative;
    z-index: 1;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #f6ffe8;
    text-shadow: 0 1px 2px rgba(42, 74, 8, 0.55);
    transform: translateY(-6px);
}
.gdl-tagline {
    font-size: 12px;
    color: #162804;
    align-self: flex-start;
    margin-top: 2px;
}

/* Main Two-Column Container */
.gdl-container {
    max-width: 980px;
    margin: 14px auto 28px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 222px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

/* Left Sidebar Boxes */
.gdl-sidebox {
    background: #ffffff;
    border: 1px solid #dedede;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 14px;
}
.gdl-sidebox-title {
    margin: 0;
    padding: 7px 10px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 15.5px;
    font-weight: bold;
    color: #111111;
    background: linear-gradient(180deg, #d7d7d7 0%, #eaeaea 100%);
    border-bottom: 1px solid #bdbdbd;
}
.gdl-sidebox-body {
    padding: 12px 10px;
}
.gdl-search-mini {
    display: flex;
    gap: 6px;
    align-items: center;
}
.gdl-search-mini input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 25px;
    padding: 3px 6px;
    background: #e3e3e3;
    border: 1px solid #cecece;
    font-size: 12px;
    color: #222;
}
.gdl-search-mini input[type="text"]:focus {
    outline: 1px solid #6ca21c;
    background: #ffffff;
}
.gdl-btn-go {
    height: 25px;
    padding: 0 10px;
    background: linear-gradient(180deg, #699928 0%, #527c1b 100%);
    color: #ffffff;
    border: 1px solid #446914;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}
.gdl-btn-go:hover {
    background: #487015;
}

.gdl-sidelist {
    list-style: none;
    margin: 0;
    padding: 4px 0 8px;
}
.gdl-sidelist li {
    border-bottom: 1px solid #efefef;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gdl-sidelist li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #84c326;
    flex-shrink: 0;
}
.gdl-sidelist li.active a {
    font-weight: bold;
    color: #245309;
}
.gdl-badge {
    margin-left: auto;
    background: #eef7df;
    border: 1px solid #bddc8c;
    color: #366910;
    font-size: 10.5px;
    padding: 0 5px;
    border-radius: 8px;
    font-weight: bold;
}

/* Right Content Cards & Sections */
.gdl-card {
    background: #ffffff;
    border: 1px solid #dedede;
    margin-bottom: 14px;
    padding: 0 10px 12px;
}
.gdl-card-flush {
    background: #ffffff;
    border: 1px solid #dedede;
    margin-bottom: 14px;
}

/* Sunflower Banner */
.gdl-hero-banner {
    margin: 0 -10px 6px;
    background: #65992d;
}
.gdl-hero-banner img {
    display: block;
    width: 100%;
    height: 142px;
    object-fit: cover;
}
.gdl-hero-greenbar {
    height: 10px;
    background: linear-gradient(90deg, #659a2d 0%, #74ab36 50%, #5d9126 100%);
}

.gdl-welcome-heading {
    margin: 8px 0 4px;
    padding: 4px 4px 8px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #111111;
    border-bottom: 1px solid #ececec;
}
.gdl-welcome-heading span {
    color: #3c7513;
}

.gdl-section-title {
    margin: 10px 0 6px;
    padding: 2px 4px 5px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #1c1c1c;
    border-bottom: 2px solid #9a9a9a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Article List Items (Artikel Baru / Browse / Search) */
.gdl-article-list {
    list-style: none;
    margin: 0;
    padding: 2px 4px;
}
.gdl-article-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dotted #eaeaea;
}
.gdl-article-item:last-child {
    border-bottom: none;
}
.gdl-doc-icon {
    width: 14px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.gdl-article-title {
    font-weight: bold;
    color: #2e6e12;
    font-size: 12px;
    display: inline-block;
}
.gdl-article-meta {
    color: #181818;
    font-size: 11.5px;
    margin-top: 1px;
}
.gdl-article-excerpt {
    color: #555555;
    font-size: 11px;
    margin-top: 3px;
}

/* Path Breadcrumb Bar & Sub Folder List */
.gdl-path-bar {
    background: #dcdcdc;
    border-bottom: 1px solid #c9c9c9;
    padding: 7px 10px;
    margin: 0 -10px 6px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 15.5px;
    font-weight: bold;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.gdl-path-bar a {
    color: #2d6f14;
}

.gdl-folder-list {
    list-style: none;
    margin: 0;
    padding: 4px 4px 2px;
}
.gdl-folder-list li {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    font-size: 12px;
}
.gdl-folder-count {
    color: #111111;
}

/* Flash Alerts */
.gdl-flash {
    padding: 9px 12px;
    margin-bottom: 12px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid transparent;
}
.gdl-flash-success {
    background: #edf8e1;
    border-color: #a8d479;
    color: #265208;
}
.gdl-flash-error {
    background: #fdf0ef;
    border-color: #e6a8a3;
    color: #8a1f17;
}

/* Metadata Detail Table (Dublin Core) */
.gdl-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px;
    font-size: 12px;
}
.gdl-meta-table th,
.gdl-meta-table td {
    padding: 7px 9px;
    border-bottom: 1px solid #ececec;
    vertical-align: top;
    text-align: left;
}
.gdl-meta-table th {
    width: 175px;
    color: #444444;
    background: #f9faf7;
    font-weight: bold;
}

/* Buttons & Forms */
.gdl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(180deg, #6fa12b 0%, #537f1b 100%);
    color: #ffffff !important;
    border: 1px solid #436913;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none !important;
}
.gdl-btn:hover {
    background: #466e14;
}
.gdl-btn-secondary {
    background: #f2f2f2;
    color: #333333 !important;
    border-color: #c5c5c5;
}
.gdl-btn-secondary:hover {
    background: #e4e4e4;
}
.gdl-btn-danger {
    background: #b9382c;
    border-color: #8f261c;
}
.gdl-btn-danger:hover {
    background: #992a20;
}

.gdl-form-grid {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 9px 12px;
    align-items: center;
    margin: 10px 0;
}
.gdl-form-grid label {
    font-weight: bold;
    color: #333333;
}
.gdl-input,
.gdl-select,
.gdl-textarea {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #c6c6c6;
    background: #fbfbfb;
    font-family: inherit;
    font-size: 12px;
    border-radius: 2px;
}
.gdl-input:focus,
.gdl-select:focus,
.gdl-textarea:focus {
    outline: 1px solid #6ea523;
    background: #ffffff;
}
.gdl-textarea {
    min-height: 92px;
    resize: vertical;
}

/* Pagination */
.gdl-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 12px 0 4px;
    align-items: center;
}
.gdl-pagination a,
.gdl-pagination span {
    padding: 3px 8px;
    border: 1px solid #d0d0d0;
    background: #f9f9f9;
    font-size: 11.5px;
    border-radius: 2px;
}
.gdl-pagination span.current {
    background: #5b891e;
    border-color: #466e14;
    color: #ffffff;
    font-weight: bold;
}

/* Tabs (Auth & Admin) */
.gdl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid #6b9e26;
    margin: 8px 0 14px;
}
.gdl-tabs a {
    padding: 6px 13px;
    background: #ececec;
    border: 1px solid #d0d0d0;
    border-bottom: none;
    color: #333333;
    font-weight: bold;
    border-radius: 3px 3px 0 0;
    text-decoration: none;
}
.gdl-tabs a.active {
    background: #6b9e26;
    border-color: #55811b;
    color: #ffffff;
}

/* Admin Stats Strip */
.gdl-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}
.gdl-stat-box {
    background: #f7fbf1;
    border: 1px solid #cde3ad;
    padding: 10px;
    text-align: center;
    border-radius: 3px;
}
.gdl-stat-num {
    font-size: 20px;
    font-weight: bold;
    color: #356910;
}
.gdl-stat-lbl {
    font-size: 11px;
    color: #555555;
}

/* Table Data */
.gdl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}
.gdl-table th,
.gdl-table td {
    border: 1px solid #e2e2e2;
    padding: 6px 8px;
    text-align: left;
}
.gdl-table th {
    background: #eef5e3;
    color: #2b540d;
}

/* Footer */
.gdl-footer {
    max-width: 980px;
    margin: 0 auto 24px;
    padding: 10px 14px;
    border-top: 2px solid #7eb824;
    color: #555555;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive Fallback for Desktop View on Small Screens */
@media (max-width: 820px) {
    .gdl-topbar-left {
        gap: 14px;
    }
    .gdl-logo-main {
        margin-left: 56px;
        font-size: 22px;
    }
    .gdl-logo-watermark {
        font-size: 40px;
        top: -10px;
    }
    .gdl-container {
        grid-template-columns: 1fr;
    }
    .gdl-sidebar {
        order: 2;
    }
    .gdl-main {
        order: 1;
    }
    .gdl-form-grid {
        grid-template-columns: 1fr;
    }
}

