/* ====== STYLE UMUM ====== */

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: #f2f4f7;
}

.container {
    width: 90%;
    max-width: 700px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    text-align: center;
    color: #333;
}

/* ====== FORM ====== */

form input[type="text"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

button,
.btn {
    padding: 10px 18px;
    background: #007bff;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background: #0056c7;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* ====== TABEL ====== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

table th {
    background: #007bff;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #eef3ff;
}


.action-btn {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    margin-right: 6px;
    display: inline-block;
}

.btn-edit {
    background: #007bff;
}

.btn-edit:hover {
    background: #005fcc;
}

.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #b51d2a;
}



/* ====== BUTTON DELETE ====== */

.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #a50000;
}

/* ====== NAV / MENU ====== */

.menu {
    background: #007bff;
    padding: 12px;
    text-align: center;
}

.menu a {
    color: white;
    margin: 0 10px;
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}

/* ===== TOAST NOTIFICATION PREMIUM ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.toast {
    min-width: 280px;
    max-width: 450px;
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;

    /* auto hide */
    animation: slideDown 0.4s ease-out, fadeOut 0.6s ease 3s forwards;
}





.toast.success { background: linear-gradient(135deg,#28a745,#1e7e34); }
.toast.error   { background: linear-gradient(135deg,#dc3545,#b21f2d); }
.toast.warn    { background: linear-gradient(135deg,#ffc107,#d39e00); color:#000; }
.toast.info    { background: linear-gradient(135deg,#007bff,#0056b3); }

.toast i {
    font-size: 20px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(50px); }
}

.alert-box {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 6px solid #dc3545;
}

.alert-warn {
    background: #fff3cd;
    color: #856404;
    border-left: 6px solid #ffc107;
}

.alert-box i {
    font-size: 20px;
}
