/* Mandira Temple Management - Authentication System Styles */

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transition: bottom 0.3s ease;
    font-weight: 500;
    max-width: 90%;
}

.toast.show {
    bottom: 24px;
}

.toast-success {
    border-left: 4px solid #4caf50;
}

.toast-success .material-icons {
    color: #4caf50;
}

.toast-error {
    border-left: 4px solid #f44336;
}

.toast-error .material-icons {
    color: #f44336;
}

.toast-warning {
    border-left: 4px solid #ff9800;
}

.toast-warning .material-icons {
    color: #ff9800;
}

.toast-info {
    border-left: 4px solid #2196f3;
}

.toast-info .material-icons {
    color: #2196f3;
}

/* ============================================================================
   PROFILE MENU
   ============================================================================ */

.profile-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    width: 280px;
    z-index: 10002 !important;
    animation: slideDown 0.3s ease;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d84315, #ff5722);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.profile-menu-info {
    flex: 1;
}

.profile-menu-name {
    font-weight: 600;
    color: #5d4037;
    font-size: 14px;
}

.profile-menu-email {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.profile-menu-divider {
    height: 1px;
    background: #f0f0f0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #5d4037;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease;
}

.profile-menu-item:hover {
    background: #f5f5f5;
}

.profile-menu-item .material-icons {
    font-size: 20px;
    color: #d84315;
}

.profile-menu-item.logout-btn {
    color: #f44336;
}

.profile-menu-item.logout-btn .material-icons {
    color: #f44336;
}

/* ============================================================================
   VERIFICATION MODAL
   ============================================================================ */

.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.verification-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-icon {
    font-size: 64px;
    color: #d84315;
    display: block;
    margin-bottom: 16px;
}

.verification-modal-content h2 {
    color: #5d4037;
    margin-bottom: 12px;
    font-size: 24px;
}

.verification-modal-content p {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.verification-email {
    font-weight: 600;
    color: #d84315;
    font-size: 16px;
    margin: 16px 0;
}

.verification-modal-content .auth-btn {
    margin-top: 24px;
}

/* ============================================================================
   ROLE-BASED VISIBILITY
   ============================================================================ */

[data-role] {
    display: none;
}

[data-auth="required"] {
    display: none;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .profile-menu {
        width: 90%;
        right: 5%;
        left: 5%;
    }

    .toast {
        width: 90%;
        bottom: 16px;
    }

    .verification-modal-content {
        padding: 24px;
    }
}

/* ============================================================================
   DARK MODE SUPPORT
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    .toast {
        background: #2a2a2a;
        color: #fff;
    }

    .profile-menu {
        background: #2a2a2a;
        color: #fff;
    }

    .profile-menu-header {
        border-bottom-color: #444;
    }

    .profile-menu-name {
        color: #fff;
    }

    .profile-menu-email {
        color: #aaa;
    }

    .profile-menu-divider {
        background: #444;
    }

    .profile-menu-item {
        color: #ccc;
    }

    .profile-menu-item:hover {
        background: #333;
    }

    .verification-modal-content {
        background: #2a2a2a;
        color: #fff;
    }

    .verification-modal-content h2 {
        color: #fff;
    }

    .verification-modal-content p {
        color: #aaa;
    }
}