/* File: css/modal.css
  File baru untuk memberi gaya pada popup login di index.html.
  Gunakan skema warna soft blue seperti yang Anda suka.
*/
.guest-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 90, 0.6); /* Warna teks primer dengan transparansi */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.guest-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.guest-modal-content {
    background: var(--bg-secondary, #ffffff);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.guest-modal-overlay.visible .guest-modal-content {
    transform: scale(1);
}

.guest-modal-content h2 {
    color: var(--text-primary, #1e3a5a);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.guest-modal-content p {
    color: var(--text-secondary, #4a658a);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.guest-modal-content .btn-primary {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    background-color: var(--bg-button, #90caf9);
    color: var(--text-primary, #1e3a5a);
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.guest-modal-content .btn-primary:hover {
     background-color: var(--bg-button-hover, #64b5f6);
}

.guest-modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.75rem;
    color: var(--text-secondary, #4a658a);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
.guest-modal-content .close-btn:hover {
    color: var(--text-primary, #1e3a5a);
}

/* ... kode css modal sebelumnya ... */

/* ▼▼▼ TAMBAHAN GAYA UNTUK MODAL PROFIL MAI ▼▼▼ */

/* Penyesuaian khusus untuk konten profil */
.profile-content {
    max-width: 400px; /* Sedikit lebih ramping */
    padding-top: 40px; /* Ruang untuk gambar yang menonjol */
    margin-top: 20px;
}

/* Gaya Gambar Avatar */
.profile-header-img {
    position: relative;
    width: 100px;
    height: 100px;
    margin: -60px auto 16px auto; /* Membuat gambar "keluar" sedikit ke atas */
    border-radius: 50%;
    border: 4px solid var(--bg-secondary, #ffffff);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--bg-sidebar, #e3f2fd);
    overflow: hidden;
}

.profile-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Deskripsi */
.profile-desc {
    font-size: 0.95rem;
    color: var(--text-secondary, #4a658a);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Wadah Tags */
.profile-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

/* Chip Tag */
.profile-tags span {
    background-color: var(--bg-primary, #f0f8ff);
    color: var(--text-secondary, #4a658a);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color, #d1e5f8);
}

.modal-actions {
    margin-top: 8px;
}

/* Animasi halus saat muncul */
.guest-modal-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s;
    backdrop-filter: blur(2px); /* Efek blur di latar belakang */
}

/* File: css/modal.css (Tambahan di paling bawah) */

/* --- GAYA KONFIRMASI KUSTOM --- */
.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

/* Tombol Bahaya (Merah Soft) */
.btn-danger {
    background-color: #ef9a9a; /* Merah muda soft */
    color: #7f1d1d; /* Merah tua */
}
.btn-danger:hover {
    background-color: #e57373;
}

/* Tombol Batal (Abu-abu) */
.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
}
.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* --- BUTTON SECONDARY (STYLE OUTLINE) --- */
.btn-secondary {
    background-color: white; /* Latar putih */
    color: var(--primary-color, #667eea); /* Teks warna ungu utama */
    border: 2px solid var(--primary-color, #667eea); /* Garis tepi */
    border-radius: 8px; /* Sudut melengkung */
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease; /* Animasi halus */
    /* Pastikan tombol tidak gepeng di mobile */
    min-height: 44px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--primary-color, #667eea); /* Saat hover jadi ungu */
    color: white; /* Teks jadi putih */
    transform: translateY(-2px); /* Efek naik sedikit */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Bayangan */
}

.btn-secondary:active {
    transform: translateY(0); /* Saat diklik turun lagi */
}

/* --- GLOBAL LOADING OVERLAY --- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); /* Latar putih transparan */
    z-index: 9999; /* Paling depan */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid var(--primary-color, #667eea);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-family: 'Inter', sans-serif;
    color: #555;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

