/* ===========================
   FTCS ADMIN PANEL
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #050816;
    color: #fff;
    min-height: 100vh;
}

/* Background */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, #2563eb33, transparent 35%),
        radial-gradient(circle at bottom, #f9731633, transparent 35%);
    z-index: -1;
}

/* ===========================
   LOGIN
=========================== */

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 90%;
    max-width: 380px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 30px rgba(37, 99, 235, .2);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 5px;
}

.login-box p {
    text-align: center;
    color: #aaa;
    margin-bottom: 25px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    border: none;
    outline: none;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #0f172a;
    color: white;
}

.login-box button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.login-box button:hover {
    background: #1d4ed8;
}

#error {
    text-align: center;
    color: #f87171;
    margin-top: 10px;
    font-size: 14px;
    min-height: 18px;
}

/* ===========================
   HEADER
=========================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

header h2 {
    letter-spacing: 1px;
}

header button {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #f97316;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

header button:hover {
    background: #ea580c;
}

/* ===========================
   DASHBOARD
=========================== */

.dashboard {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.box {
    padding: 25px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    transition: .3s;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(37, 99, 235, .25);
}

.box h3 {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-weight: 400;
}

.box h1 {
    font-size: 34px;
}

.box button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.box button:hover {
    background: #1d4ed8;
}

.box .edit-mini {
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 12px;
    background: rgba(255, 255, 255, .08);
}

.box .edit-mini:hover {
    background: rgba(255, 255, 255, .18);
}

/* ===========================
   MODAL - KELOLA PENGUMUMAN
=========================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: 90%;
    max-width: 480px;
    padding: 28px;
    border-radius: 18px;
    background: #0b1224;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 0 40px rgba(37, 99, 235, .25);
}

.modal-box h3 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-box label {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
    margin-top: 14px;
}

.modal-box input,
.modal-box textarea {
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    border-radius: 10px;
    background: #0f172a;
    color: white;
    font-family: inherit;
    resize: vertical;
}

.modal-box textarea {
    min-height: 110px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

#saveAnnouncement {
    background: #2563eb;
    color: white;
}

#saveAnnouncement:hover {
    background: #1d4ed8;
}

#cancelAnnouncement {
    background: rgba(255, 255, 255, .08);
    color: white;
}

#cancelAnnouncement:hover {
    background: rgba(255, 255, 255, .15);
}

.modal-status {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
    min-height: 16px;
}

.modal-status.success {
    color: #4ade80;
}

.modal-status.error {
    color: #f87171;
}
