/* ============================================
   LOGIN CONTAINER - Modern Design
   ============================================ */
.alm-login-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    margin: 50px auto;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#alm-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.alm-login-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.alm-login-icon {
    font-size: 60px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.alm-login-icon i {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.alm-title {
    color: white;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.alm-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 30px;
}

/* ============================================
   INPUT GROUPS
   ============================================ */
.alm-input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.alm-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #764ba2;
    font-size: 16px;
    z-index: 2;
}

.alm-input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    font-size: 15px;
    transition: all 0.3s ease;
    color: #333;
}

.alm-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.alm-input-group input::placeholder {
    color: #999;
}

.alm-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 2;
}

.alm-password-toggle:hover {
    color: #667eea;
}

/* ============================================
   FORM OPTIONS
   ============================================ */
.alm-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.alm-remember-me {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    cursor: pointer;
}

.alm-remember-me input {
    margin-right: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.alm-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.alm-button:active {
    transform: translateY(0);
}

.alm-button i {
    margin-right: 8px;
}

.alm-button-group {
    margin-top: 20px;
}

.alm-forgot-btn {
    display: inline-block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.alm-forgot-btn:hover {
    color: white;
    text-decoration: underline;
}

.alm-forgot-btn i {
    margin-right: 5px;
}

/* ============================================
   MODAL
   ============================================ */
.alm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.alm-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.alm-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.alm-modal-close:hover {
    color: #333;
}

.alm-modal-icon {
    text-align: center;
    font-size: 48px;
    color: #764ba2;
    margin-bottom: 15px;
}

.alm-modal-icon i {
    background: rgba(118, 75, 162, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.alm-modal-content h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 5px;
}

.alm-modal-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.alm-modal-content .alm-input-group input {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.alm-modal-content .alm-input-group input:focus {
    border-color: #764ba2;
    background: white;
}

.alm-modal-content .alm-button {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    margin-top: 5px;
}

.alm-resend-btn {
    background: #f5f5f5 !important;
    color: #764ba2 !important;
    box-shadow: none !important;
    margin-top: 10px !important;
}

.alm-resend-btn:hover {
    background: #e8e8e8 !important;
}

/* ============================================
   DASHBOARD
   ============================================ */
.alm-dashboard-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.alm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.alm-dashboard-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alm-dashboard-title i {
    font-size: 28px;
    color: #764ba2;
}

.alm-dashboard-title h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.alm-logout-btn {
    width: auto;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.alm-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ============================================
   TABLE
   ============================================ */
.alm-table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.alm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.alm-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.alm-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.alm-table tr:hover td {
    background: #f8f9fa;
}

/* ============================================
   TABLE BUTTONS
   ============================================ */
.alm-dash-edit-btn,
.alm-dash-delete-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.alm-dash-edit-btn {
    background: #667eea;
    color: white;
}

.alm-dash-edit-btn:hover {
    background: #5a6fd6;
    transform: translateY(-1px);
}

.alm-dash-delete-btn {
    background: #dc3545;
    color: white;
}

.alm-dash-delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.alm-dash-edit-btn i,
.alm-dash-delete-btn i {
    margin-right: 4px;
}

/* ============================================
   MODAL - DELETE
   ============================================ */
.alm-delete-modal {
    text-align: center;
}

.alm-delete-modal h2 {
    color: #dc3545;
}

.alm-delete-modal p {
    color: #666;
    font-size: 16px;
    margin: 20px 0 30px;
}

.alm-delete-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.alm-delete-confirm {
    background: #dc3545 !important;
    width: auto !important;
    padding: 10px 30px !important;
}

.alm-delete-confirm:hover {
    background: #c82333 !important;
}

.alm-delete-cancel {
    background: #6c757d !important;
    width: auto !important;
    padding: 10px 30px !important;
}

.alm-delete-cancel:hover {
    background: #5a6268 !important;
}

/* ============================================
   HORIZONTAL MODAL (Edit)
   ============================================ */
.alm-horizontal-modal .alm-form-group {
    margin-bottom: 15px;
}

.alm-horizontal-modal .alm-form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.alm-horizontal-modal .alm-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.alm-horizontal-modal .alm-form-group input:focus {
    border-color: #764ba2;
    outline: none;
}

.alm-update-btn {
    margin-top: 10px !important;
}

/* ============================================
   MESSAGES
   ============================================ */
#alm-login-message,
#alm-forgot-message,
#alm-forgot-step2-message {
    margin-top: 15px;
    font-size: 14px;
}

#alm-login-message p,
#alm-forgot-message p,
#alm-forgot-step2-message p {
    padding: 10px;
    border-radius: 8px;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .alm-login-container {
        padding: 40px 20px;
        margin: 20px 10px;
        min-height: auto;
    }
    
    .alm-login-icon {
        font-size: 40px;
    }
    
    .alm-title {
        font-size: 24px;
    }
    
    .alm-dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .alm-dashboard-title {
        flex-direction: column;
    }
    
    .alm-modal-content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .alm-table-container {
        padding: 10px;
    }
    
    .alm-table th,
    .alm-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .alm-dash-edit-btn,
    .alm-dash-delete-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}
/* ============================================
   USER MANAGEMENT - CREATE USER CARD
   ============================================ */
.alm-create-user-card {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.alm-create-user-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alm-create-user-card h3 i {
    color: #764ba2;
}

.alm-create-user-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alm-form-row {
    display: flex;
    gap: 20px;
}

.alm-form-row .alm-form-group {
    flex: 1;
}

.alm-form-group {
    margin-bottom: 0;
}

.alm-form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.alm-form-group label i {
    margin-right: 5px;
    color: #764ba2;
}

.alm-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.alm-form-group input:focus {
    border-color: #764ba2;
    outline: none;
}

.alm-password-wrapper {
    position: relative;
}

.alm-password-wrapper input {
    padding-right: 40px;
}

.alm-password-wrapper .alm-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

.alm-password-wrapper .alm-password-toggle:hover {
    color: #764ba2;
}

.alm-create-btn {
    width: auto;
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 10px;
    font-size: 15px;
    margin-top: 5px;
}

.alm-create-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
}

/* ============================================
   SUCCESS & ERROR MESSAGES
   ============================================ */
.alm-success-msg {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

.alm-error-msg {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .alm-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .alm-create-user-card {
        padding: 20px;
    }
    
    .alm-create-btn {
        width: 100%;
    }
}