/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e8f4f8;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 16px;
    color: #202124;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.loading-subtext {
    font-size: 14px;
    color: #5f6368;
    margin-top: 8px;
    font-family: 'Anek Telugu', sans-serif;
    font-weight: 300;
}

/* Custom Modal */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.modal-icon.success {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
}

.modal-icon.error {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: white;
}

.modal-icon.info {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
    font-family: 'Exo 2', sans-serif;
}

.modal-body {
    padding: 0 30px 20px;
    text-align: center;
}

.modal-message {
    font-size: 16px;
    color: #5f6368;
    line-height: 1.5;
    font-family: 'Anek Telugu', sans-serif;
    font-weight: 300;
}

.modal-email {
    font-weight: 500;
    color: #1a73e8;
    font-family: 'Roboto', sans-serif;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.modal-button {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.modal-button:active {
    transform: translateY(0);
}

.modal-button.secondary {
    background: #f1f3f4;
    color: #5f6368;
    box-shadow: none;
}

.modal-button.secondary:hover {
    background: #e8eaed;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 24px 20px 16px;
    }

    .modal-body {
        padding: 0 20px 16px;
    }

    .modal-footer {
        padding: 16px 20px 24px;
    }

    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-message {
        font-size: 14px;
    }

    .loading-content {
        padding: 30px;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
    }
}
