/* =============================================
 * ADMIN MODAL
 * ============================================= */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal-content {
    background: white;
    border-radius: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
}

.admin-modal-header {
    background: linear-gradient(135deg, #1a2b6e, #0f1a4d);
    color: white;
    padding: 30px;
    border-radius: 30px 30px 0 0;
    text-align: center;
}

.admin-modal-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.admin-modal-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.admin-modal-body {
    padding: 30px;
}

.admin-info-box {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #eaeff5;
}

.admin-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.admin-info-item:last-child {
    border-bottom: none;
}

.admin-info-label {
    font-weight: 600;
    color: #6c757d;
}

.admin-info-value {
    font-weight: 700;
    color: #1a2b6e;
    font-size: 16px;
}

.admin-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

/* =============================================
 * EMAIL VERIFICATION MODAL
 * ============================================= */
.email-verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-verification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.email-verification-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.email-verification-content {
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

.email-verification-header {
    background: linear-gradient(135deg, #1a2b6e, #0f1a4d);
    color: white;
    padding: 30px;
    border-radius: 30px 30px 0 0;
    text-align: center;
    position: relative;
}

.email-verification-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.email-verification-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.email-verification-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.email-verification-close:hover {
    opacity: 1;
}

.email-verification-body {
    padding: 30px;
}

.verification-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: #1a2b6e;
    color: white;
}

.progress-step .step-text {
    font-size: 12px;
    color: #6c757d;
}

.progress-step.active .step-text {
    color: #1a2b6e;
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
}

.email-display-container {
    background: #e8f4fd;
    border: 2px solid #1a2b6e;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.email-display-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.email-display-box {
    font-size: 20px;
    font-weight: 700;
    color: #1a2b6e;
    word-break: break-all;
}

.verification-instructions {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.instructions-icon {
    font-size: 24px;
}

.instructions-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a2b6e;
    margin: 0;
}

.instructions-list {
    margin: 0;
    padding-left: 20px;
    color: #495057;
}

.instructions-list li {
    margin-bottom: 10px;
}

.verification-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.email-verification-footer {
    display: flex;
    gap: 15px;
    padding: 0 30px 30px;
    justify-content: center;
}

.email-verification-note {
    padding: 0 30px 30px;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}

/* =============================================
 * 2FA MODAL
 * ============================================= */
.two-fa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.two-fa-content {
    background: white;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
}

.two-fa-header {
    background: linear-gradient(135deg, #1a2b6e, #0f1a4d);
    color: white;
    padding: 30px;
    border-radius: 30px 30px 0 0;
    text-align: center;
}

.two-fa-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.two-fa-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.two-fa-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.two-fa-body {
    padding: 30px;
}

.two-fa-code-display {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 36px;
    letter-spacing: 8px;
    font-weight: bold;
    color: #1a2b6e;
    text-align: center;
    margin-bottom: 15px;
}

.two-fa-expiry-note {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 25px;
}

.two-fa-input-group {
    margin-bottom: 25px;
}

.two-fa-input-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.two-fa-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    font-family: monospace;
}

.two-fa-input:focus {
    outline: none;
    border-color: #1a2b6e;
    box-shadow: 0 0 0 3px rgba(26, 43, 110, 0.1);
}

.two-fa-button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.two-fa-timer {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 10px;
}

.two-fa-attempts {
    text-align: center;
    font-size: 14px;
    color: #dc3545;
}

/* =============================================
 * INFO CARDS
 * ============================================= */
.info-card {
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-card.warning-card {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.info-card.success-card {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-content {
    color: #495057;
    line-height: 1.6;
}

.info-card-content p {
    margin: 0 0 10px;
}

.info-card-content p:last-child {
    margin-bottom: 0;
}

/* =============================================
 * ANIMÁCIE
 * ============================================= */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =============================================
 * SUCCESS MODAL
 * ============================================= */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.success-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
}

.success-modal-content {
    background: linear-gradient(135deg, #ffffff, #f0fff4);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: successModalSlideIn 0.5s ease;
    border: 4px solid var(--success-color);
    overflow: hidden;
}

.success-modal-header {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.success-modal-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.success-modal-body {
    padding: 30px;
    text-align: center;
}

/* Animácia checkmark */
.success-animation {
    margin: 20px 0 30px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: circle-scale 0.5s ease;
}

@keyframes circle-scale {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.checkmark-circle-dot {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.checkmark-circle-stem {
    position: absolute;
    width: 3px;
    height: 25px;
    background-color: white;
    left: 38px;
    top: 20px;
    transform: rotate(45deg);
    animation: stem-appear 0.3s ease 0.3s both;
}

.checkmark-circle-kick {
    position: absolute;
    width: 3px;
    height: 15px;
    background-color: white;
    left: 42px;
    top: 35px;
    transform: rotate(-45deg);
    animation: kick-appear 0.3s ease 0.3s both;
}

@keyframes stem-appear {
    0% { height: 0; opacity: 0; }
    100% { height: 25px; opacity: 1; }
}

@keyframes kick-appear {
    0% { height: 0; opacity: 0; }
    100% { height: 15px; opacity: 1; }
}

.success-message {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.user-info-summary {
    background: var(--primary-ultralight);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    border: 2px solid var(--border-light);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 100, 212, 0.2);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    word-break: break-word;
    max-width: 250px;
    text-align: right;
}

.redirect-info {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 15px;
}

.redirect-timer {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f4fd;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.hint-icon {
    font-size: 20px;
}

.hint-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.success-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

#goToLoginNowBtn {
    min-width: 250px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#goToLoginNowBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 43, 110, 0.4);
}

@keyframes successModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}