/* ===== GLOBAL ===== */

*,*::before,
*::after {
    box-sizing: border-box;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    margin: 20px;
    background: #f9f9f9;
}

textarea {
    font-family: Arial, sans-serif !important;
    font-size: 14px;
    color: #333;
    width: 300px;
    height: 100px;
}

form {
    color: #999;
    font-size:12px;
}

/* ===== TABLE ===== */

h2 {
    margin-bottom: 15px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #FFF;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}

th {
    background: #ddd;
}

/* zebra row */
table tr:nth-child(even) {
    background: #EEE;
}

table tr:nth-child(odd) {
    background: #FFF;
}

/* hover effect biar modern */
table tr:hover {
    background: #e0f2ff;
}

/* ===== BUTTON ===== */

button {
    padding: 6px 12px;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background: #45a049;
}

td a {
    text-decoration: none;
    margin-right: 8px;
    font-size: 18px;
}

td a:hover {
    opacity: 0.6;
}


/* ===== ACTION ICON ===== */

.action-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    cursor: pointer;
}



.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    width: 400px;
    margin: 8% auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* ===== MODAL BACKDROP ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    
    background: rgba(0,0,0,0.4);

    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
    background: white;
    width: 420px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;

    transform: translateY(-20px);
    transition: transform 0.25s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}


/* ===== PAGINATION ===== */
.pagination {
    margin-top: 20px;
    font-size: 10px;
}

.pagination a {
    padding: 6px 8px;
    margin: 2px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: #eee;
}

.pagination .active {
    background: #333;
    color: white;
    border-color: #333;
}


/* ===== LOGIN PAGE ===== */

.login-page {
    font-family: Arial, sans-serif;
    color: #333;
    background: #f5f5f5;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 100vh;
    margin: 0;
}

.login-box {
    background: #fff;
    padding: 30px;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;

    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial;
}

.login-box button {
    width: 100%;
    padding: 10px;

    background: #333;
    color: white;

    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-box button:hover {
    background: #555;
}

.warning {
    background: #ffe5e5;
    color: #b30000;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}


/* ===== LOGOUT BUTTON ===== */

.logout-btn {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 22px;
}

.logout-btn a {
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.logout-btn a:hover {
    color: #000;
    transform: scale(1.15);
}

