/* =====================================
   FAIRY UI – GLOBAL (IKUT LOGIN.CSS)
   ===================================== */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

/* =====================================
   GLOBAL BACKGROUND (SAMA MACAM LOGIN)
   ===================================== */
body {
    background-color: #fdfbfb;
    font-family: 'Poppins', sans-serif;
    color: #5a3e48;
    overflow-x: hidden;
}

/* Login / Register pages have their own background — do NOT override */
body:not(.login-page):not(.register-page) {
    background: url("../img/fairytale_flowers.png") center/cover no-repeat fixed;
}

/* =====================================
   HEADER (IKUT LOGIN)
   ===================================== */
.header {
    height: 60px;
    background: #ff4da6;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================
   CARD / CONTAINER (SAMA MACAM LOGIN)
   ===================================== */
/* .card on login/register is overridden by login.css / register.css */
body:not(.login-page):not(.register-page) .card,
.approval-box {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 26px;
    background: #ffffff;
    border: 3px solid #ff4da6;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(255, 77, 166, 0.35);
}

/* =====================================
   TITLES
   ===================================== */
h2, h3 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #ff1a8c;
    margin-bottom: 20px;
}

/* =====================================
   DASHBOARD
   ===================================== */
.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.card-box {
    background: #ffffff;
    border: 2px solid #ff99cc;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(255, 77, 166, 0.25);
}

.card-box a {
    display: block;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    color: #ff1a8c;
    font-weight: 600;
}

.card-box a span {
    .card-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    text-align: center;
    text-decoration: none;
    color: #ff1a8c;
    font-weight: 600;
    font-size: 16px;
}

}

/* =====================================
   FORMS (IKUT LOGIN)
   ===================================== */
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border: 1.8px solid #ff99cc;
    border-radius: 7px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff1a8c;
}

textarea {
    resize: vertical;
}

/* =====================================
   BUTTON (IKUT LOGIN)
   ===================================== */
button {
    width: 100%;
    padding: 12px;
    background: #ff1a8c;
    border: none;
    border-radius: 9px;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 1.5px;
    cursor: pointer;
}

/* =====================================
   LINKS
   ===================================== */
.login-links,
.login-footer,
.back,
.log {
    text-align: center;
    margin-top: 14px;
}

.login-links a,
.login-footer a,
.back a,
.log a {
    display: block;
    margin: 4px 0;
    color: #ff1a8c;
    font-size: 12px;
    text-decoration: none;
}

.login-links a:hover,
.login-footer a:hover,
.back a:hover,
.log a:hover {
    text-decoration: underline;
}

/* =====================================
   reCAPTCHA (CENTER)
   ===================================== */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

iframe[src*="recaptcha"] {
    display: block;
    margin: 0 auto;
}

/* =====================================
   TABLE – ⚠️ JANGAN UBAH (KEKAL ASAL)
   ===================================== */
table {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 24px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

th {
    background: #f9c5d1;
    padding: 14px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

td {
    padding: 16px 20px;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(249,197,209,0.4);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255,154,203,0.08);
}

td:nth-child(1) { width: 20%; }
td:nth-child(2) { width: 40%; }
td:nth-child(3) { width: 40%; }

td:last-child {
    white-space: nowrap;
}

/* =====================================
   ACTION BUTTONS (TABLE)
   ===================================== */
a { 
    color: #6b3b47; 
    text-decoration: none; 
}

a[href*="edit"], a[href*="Edit"] {
    background: #ffe29a;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    margin: 0 4px;
    display: inline-block;
}

a[href*="delete"], a[href*="Delete"] {
    background: #ff8fa3;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    margin: 0 4px;
    display: inline-block;
}

.action .approve {
    background: #9be7c4;
    color: #256b4d;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    margin: 0 4px;
}

.action .reject {
    background: #ff8fa3;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    margin: 0 4px;
}

/* =====================================
   RESPONSIVE
   ===================================== */
@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .card,
    .approval-box {
        width: 94%;
        margin: 30px auto;
    }
}

@media (max-width: 600px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}
