/* === RESET & GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Quicksand', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    color: #1e293b;
    min-height: 100vh;
}

/* === HEADER / NAVBAR === */
header {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    animation: fadeInDown 0.8s ease;
}

header h1 {
    display: inline-block;
    margin-left: 30px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header ul {
    float: right;
    margin-right: 30px;
    list-style: none;
}

header ul li {
    display: inline-block;
    margin-left: 20px;
}

header ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: 500;
}

header ul li a:hover,
header ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === CONTENT === */
.content {
    width: 85%;
    max-width: 1100px;
    margin: 80px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.9s ease;
}

.content h2 {
    margin-bottom: 25px;
    color: #059669;
    text-transform: capitalize;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

/* === BOX CONTAINER === */
.box {
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: all 0.3s;
}

.box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* === TABLE STYLE === */
.table-data,
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 15px;
}

.table-data tr,
.table tr {
    border-bottom: 1px solid #f1f5f9;
    height: 40px;
}

.table-data tr td,
.table tr td {
    padding: 10px 12px;
    vertical-align: top;
}

.table-data tr td:nth-child(1),
.table tr td:nth-child(1) {
    font-weight: 600;
    color: #0f766e;
    width: 30%;
}

/* === FORM & INPUT === */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f766e;
}

.input-control,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    background: #f9fafb;
}

.input-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
    background-color: #fff;
}

/* === BUTTONS === */
.btn,
.btn-daftar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn:hover,
.btn-daftar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-cetak {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-cetak:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-kembali {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-kembali:hover {
    transform: translateY(-3px);
}

/* === LOGIN FORM === */
.login-form {
    width: 100%;
}

.login-form .input-group input {
    width: 100%;
}

.login-register-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.login-register-text a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
}

.login-register-text a:hover {
    text-decoration: underline;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
    margin-top: 60px;
    border-radius: 15px 15px 0 0;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    header h1 {
        font-size: 18px;
        margin-left: 15px;
    }
    header ul {
        float: none;
        text-align: center;
        margin-top: 10px;
    }
    header ul li {
        display: block;
        margin: 8px 0;
    }
    .content {
        width: 90%;
        padding: 20px;
    }
    .btn, .btn-daftar, .btn-cetak {
        width: 100%;
        justify-content: center;
    }
}

/* === LOGIN BOX === */
.login-box {
    max-width: 400px;
    margin: 0 auto;
}

/* === ERROR ALERT === */
.error-alert {
    background: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ef4444;
}

/* === LOGIN LINK === */
.login-link-center {
    text-align: center;
    margin-top: 15px;
}

.link-green {
    color: #059669;
    text-decoration: none;
}

.link-green:hover {
    text-decoration: underline;
}

/* === UTILITY === */
.mt-20 {
    margin-top: 20px;
}