/* Reset default */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Style untuk body */
body {
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

/* Form container */
h2 {
    margin-bottom: 15px;
    color: #333;
}

form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%
    text-align: center;
}

/* Input field */
input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Tombol */
button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #28a745;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #218838;
}

/* Responsif */
@media (max-width: 500px) {
    form {
        width: 90%;
    }
}


/*admin..................*/
/* Reset dasar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

/* Sidebar Menu */
nav {
    width: 250px;
    height: 100vh;
    background: #2c3e50;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 20px;
}
nav ul {
    list-style: none;
    padding: 0;
}
nav ul li {
    padding: 15px;
    border-bottom: 1px solid #34495e;
}
nav ul li a {
    text-decoration: none;
    color: white;
    display: block;
    font-size: 16px;
}
nav ul li a:hover {
    background: #1abc9c;
    padding: 10px;
}

/* Konten utama */
.content {
    margin-left: 260px; /* Supaya tidak tertutup sidebar */
    padding: 20px;
}

/* Header */
header {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
}

/* Statistik */
.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.card {
    background: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 200px;
    font-weight: bold;
}


/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* Header */
header {
    background: #007bff;
    color: white;
    padding: 15px;
    text-align: center;
}

header h2 {
    margin: 0;
}

/* Navigation */
nav {
    background: #0056b3;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

form input,
form select,
form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

form button:hover {
    background: #0056b3;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: #007bff;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.btn:hover {
    background: #218838;
}

.btn-logout {
    background: #dc3545;
    padding: 8px 15px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
}

.btn-logout:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }
}


button:disabled, 
.btn-disabled {
    background-color: #ccc !important;  /* Warna abu-abu lebih tegas */
    color: #666 !important;  /* Warna teks lebih gelap */
    border: 1px solid #aaa !important; /* Tambahkan border agar lebih jelas */
    cursor: not-allowed;
    opacity: 1; /* Pastikan tidak transparan */
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-masuk {
    background-color: #28a745;
    color: white;
}

.btn-masuk:hover {
    background-color: #218838;
}

.btn-pulang {
    background-color: #dc3545;
    color: white;
}

.btn-pulang:hover {
    background-color: #c82333;
}

.absen-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 320px; /* Sesuaikan agar proporsional */
    margin: auto;
}

.absen-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.absen-btn-container button {
    width: 250px; /* Sesuaikan agar lebih rata */
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
}

.absen-btn-container p {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Tombol kembali ke dashboard */
.btn-dashboard {
    display: block;
    width: 250px;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    margin-top: 15px;
    text-decoration: none;
}

.btn-dashboard:hover {
    background-color: #0056b3;
}


