:root {
    --primary-yellow: #FFB300;
    --primary-light: #FFD54F;
    --accent-green: #AED581;
    --text-dark: #2C3E50;
    --text-light: #546E7A;
    --bg-color: #FAFAFA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.auth-box h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.auth-box input {
    width: 100%;
    padding: 14px;
    border: 2px solid #eef0f2;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-yellow);
    text-decoration: none;
    letter-spacing: 1px;
}

nav { display: flex; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}
nav a:hover, nav a.active-link { color: var(--accent-green); }

.menu {
    --color: var(--text-dark);
    width: 36px; height: 36px;
    padding: 0; margin: 0;
    outline: none; position: relative;
    border: none; background: none;
    cursor: pointer; display: none; 
}
.menu svg {
    width: 64px; height: 48px;
    top: -6px; left: -14px;
    stroke: var(--color); stroke-width: 4px;
    stroke-linecap: round; stroke-linejoin: round;
    fill: none; display: block; position: absolute;
}
.menu svg path {
    transition: stroke-dasharray var(--duration, 0.85s) ease var(--delay, 0s), 
                stroke-dashoffset var(--duration, 0.85s) ease var(--delay, 0s);
    stroke-dasharray: var(--array-1, 26px) var(--array-2, 100px);
    stroke-dashoffset: var(--offset, 126px);
}
.menu svg path:nth-child(2) { --duration: 0.7s; --offset: 100px; --array-2: 74px; }
.menu svg path:nth-child(3) { --offset: 133px; --array-2: 107px; }
.menu.active svg path { --offset: 57px; }
.menu.active svg path:nth-child(1), .menu.active svg path:nth-child(3) { --delay: 0.15s; }
.menu.active svg path:nth-child(2) { --duration: 0.4s; --offset: 2px; --array-1: 1px; }
.menu.active svg path:nth-child(3) { --offset: 58px; }

main {
    flex: 1;
    padding: 3rem 5%;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.view-section {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.content-card {
    background: white;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}

.content-card h1, .content-card h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.content-card h1::after, .content-card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.content-card:hover h1::after, .content-card:hover h2::after {
    width: 100%;
}

.content-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-form label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: -5px;
}

.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eef0f2;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.admin-form textarea {
    resize: vertical;
    min-height: 150px;
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none;
    border-color: #ff914d;
    box-shadow: 0 4px 15px rgba(255, 145, 77, 0.15);
}

.btn-primary {
    background: linear-gradient(90deg, #ffde59, #ff914d);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 145, 77, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 145, 77, 0.45);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-green {
    background: linear-gradient(90deg, #7bed9f, #2ed573);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.45);
}

.btn-green:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel-small {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-small:hover {
    background: #d32f2f;
    color: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}
.status-PENDING { background: #fff3cd; color: #856404; }
.status-SUCCESS { background: #d4edda; color: #155724; }
.status-FAILED { background: #f8d7da; color: #721c24; }
.status-CANCELLED { background: #e0e0e0; color: #616161; }

.flatpickr-calendar {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    border: none !important;
}

.flatpickr-day.selected {
    background: linear-gradient(90deg, #ffde59, #ff914d) !important;
    border: none !important;
    color: black !important; 
    font-weight: bold !important;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    display: none;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #2e7d32; }
.toast.error { background: #d32f2f; }

footer {
    text-align: center;
    padding: 2rem;
    background: white;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

@media screen and (max-width: 768px) {
    .menu { display: block; }
    nav {
        position: absolute;
        top: calc(100% + 15px); right: 5%;
        width: 220px; background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        display: flex; flex-direction: column;
        padding: 8px 0; z-index: 1000;
        visibility: hidden; opacity: 0;
        transform: translateY(-15px);
        transition: opacity 0.3s ease, transform 0.3s, visibility 0.3s;
    }
    nav.active { visibility: visible; opacity: 1; transform: translateY(0); }
    nav a { padding: 12px 20px; border-bottom: 1px solid #f5f5f5; margin-left: 0; }
    .data-table { display: block; overflow-x: auto; }
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.notif-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.notif-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.notif-time {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notif-card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-card-body {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.notif-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}
