/* =============================
   ALERT & WARNING STYLES (VStock)
   ============================= */

/* Alert error: tampil seperti input */
.alert-error {
    background: #ffeaea;
    color: #d32f2f;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.4rem 0.75rem; /* Sama seperti input */
    margin: 0 auto 0.8rem auto; /* Sama dengan input & button */
    text-align: center;
    font-size: 0.95rem; /* Sama dengan input */
    height: 36px; /* Sama seperti input */
    width: 90%; /* Sama seperti input */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

/* Saat error muncul */
.alert-error.show {
    opacity: 1;
    visibility: visible;
}

/* Error & Success Message (dari main.css) */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease-out;
}
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease-out;
}

/* Alert styling untuk kelola pengguna (dari kelola_pengguna.css) */
.alert.alert-success,
.alert.alert-danger {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    padding: 15px 20px !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    z-index: 9999 !important;
    animation: slideInRight 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.alert.alert-success {
    background-color: #28a745 !important;
}
.alert.alert-danger {
    background-color: #dc3545 !important;
}
.kelola-pengguna-alert {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    padding: 15px 20px !important;
    padding-right: 40px !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    z-index: 9999 !important;
    animation: slideInRight 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.kelola-pengguna-alert.success {
    background-color: #28a745 !important;
}
.kelola-pengguna-alert.error {
    background-color: #dc3545 !important;
}
.kelola-pengguna-alert.danger {
    background-color: #dc3545 !important;
}