/* ==================== MODUL RAK PERPUSDUTA (CSS MANDIRI) ==================== */
.rak-module-wrapper {
    width: 100%;
    margin: 14px 0;
}

.rak-gate-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-main, #e2e8f0);
    border-radius: var(--border-radius, 12px);
    padding: 24px 20px;
    text-align: center;
}

.rak-module-wrapper .search-container {
    margin-bottom: 22px;
}

.rak-module-wrapper .search-box {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rak-module-wrapper .search-box input {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
    padding: 11px 14px;
    font-size: 15px;
    border: 1px solid var(--border-main, #cbd5e1);
    border-radius: 8px;
    background: var(--bg-card, #ffffff);
    color: var(--text-main, #1e293b);
}

.rak-module-wrapper .btn-search {
    padding: 11px 18px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
    white-space: nowrap;
}
.rak-module-wrapper .btn-search:hover { background: #0056b3; }

/* List Items (Folder & File) */
.rak-module-wrapper .item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rak-module-wrapper .item-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.rak-module-wrapper .btn-item {
    flex: 1;
    text-align: left;
    padding: 13px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    word-break: break-word;
}
.rak-module-wrapper .btn-folder {
    background: #e9ecef;
    border: 1px solid #ced4da;
    font-weight: 600;
    color: #2b2b2b;
}
.rak-module-wrapper .btn-folder:hover {
    background: #dee2e6;
    border-color: #adb5bd;
}
.rak-module-wrapper .btn-file {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #333333;
}
.rak-module-wrapper .btn-file:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}
.rak-module-wrapper .btn-options {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #495057;
    padding: 0;
    flex-shrink: 0;
}
.rak-module-wrapper .btn-options:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Navigasi Bawah Folder */
.rak-module-wrapper .nav-bottom {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-main, #eee);
    padding-top: 18px;
}
.rak-module-wrapper .btn-nav-action {
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}
.rak-module-wrapper .btn-back { background: #6c757d; color: white; display: none; }
.rak-module-wrapper .btn-back:hover { background: #5a6268; }
.rak-module-wrapper .btn-root { background: #007bff; color: white; display: none; }
.rak-module-wrapper .btn-root:hover { background: #0056b3; }

/* Dialog Opsi & Modal Rak */
dialog.rak-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: #ffffff;
    color: #333;
    z-index: 10000;
}
dialog.rak-modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
dialog.rak-modal-dialog .modal-dialog-content {
    padding: 22px;
    text-align: left;
}
dialog.rak-modal-dialog .modal-dialog-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #1a365d;
    font-size: 17px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    word-break: break-word;
}
.modal-option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 15px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    transition: all 0.2s;
}
.modal-option-btn:hover, .modal-option-btn:focus {
    background: #e2e8f0;
    border-color: #007bff;
    outline: none;
}

/* Toast Notifikasi Rak */
.toast-notif {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.toast-notif.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
