body {
    font-family: sans-serif;
    padding: 20px;
    text-align: center;
}

button {
    padding: 12px;
    width: 100%;
    background: green;
    color: white;
    border: none;
    border-radius: 8px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Status */
.status {
    text-align: center;
}

.success {
    color: green;
    font-weight: bold;
}

.danger {
    color: red;
    font-weight: bold;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table th {
    background: #f5f5f5;
}

/* Logout */
.logout {
    background: red;
    margin-top: 15px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;

    background: 
        linear-gradient(rgba(230,53,53,0.7), rgba(243,97,97,0.7)),
        url('uploads/logo.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* CONTAINER */
.container {
    max-width: 500px;
    margin: auto;
    padding: 20px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease-in-out;
}

/* HEADER CARD */
.header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    text-align: center;
}

/* TITLE */
h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

h3 {
    font-size: 18px;
}

/* TEXT */
p {
    font-size: 14px;
    color: #555;
}

/* STATUS */
.success {
    color: #28a745;
    font-weight: bold;
}

.danger {
    color: #dc3545;
    font-weight: bold;
}

/* FORM */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 5px;
    font-size: 14px;
}

/* BUTTON */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

button:hover {
    transform: scale(1.05);
}

/* BUTTON VARIAN */
.btn-masuk {
    background: linear-gradient(135deg, #28a745, #5cd65c);
}

.btn-pulang {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

.logout {
    background: #222;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 10px;
}

table th {
    background: #f4f6f9;
    padding: 10px;
    font-size: 13px;
}

table td {
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

/* TABLE HOVER */
table tr:hover {
    background: #f9f9f9;
}

/* LINK */
a {
    text-decoration: none;
}

/* BADGE */
.badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: white;
}

.badge-hadir {
    background: #28a745;
}

.badge-telat {
    background: #ffc107;
    color: black;
}

.badge-alpha {
    background: #dc3545;
}

/* CARD GRID (ADMIN) */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    color: white;
}

.stat.blue {
    background: #4facfe;
}

.stat.green {
    background: #28a745;
}

.stat.orange {
    background: #f39c12;
}

/* IMAGE PREVIEW */
img {
    max-width: 100%;
    border-radius: 10px;
}

/* SCROLL TABLE MOBILE */
.table-container {
    overflow-x: auto;
}

.foto-profile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid white;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    h2 {
        font-size: 18px;
    }

    button {
        font-size: 14px;
    }

    table th, table td {
        font-size: 12px;
    }
}