﻿
/* Force Hardware Acceleration */
.otp-code,
.account-card {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

.modal {
    z-index: 9999;
}

/* --- MODERN INPUT STYLES (Previous Edit) --- */
.input-group-unified {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
    padding-right: 8px;
}

    .input-group-unified:focus-within {
        border-color: #1E40AF;
        box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    }

    .input-group-unified input {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 !important;
        flex-grow: 1;
        padding: 12px 12px;
        outline: none;
        font-family: monospace;
    }

.icon-action-simple {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    color: #94a3b8;
    transition: color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .icon-action-simple:hover {
        color: #1E40AF;
    }

    .icon-action-simple:active {
        transform: scale(0.95);
    }

.icon-divider {
    width: 1px;
    height: 20px;
    background-color: #e2e8f0;
    margin: 0 2px;
}

.close-button-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

    .close-button-modern:hover {
        color: #ef4444;
        background-color: #fef2f2;
    }

/* --- CIRCULAR TIMER STYLES --- */
.otp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    padding-right: 10px; /* Space for edit buttons area */
}

.otp-code {
    font-size: 1.8rem; /* Adjusted slightly */
    font-weight: 700;
    letter-spacing: 2px;
    color: #1e293b;
    font-family: monospace;
}

.timer-container {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: 15px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start at 12 o'clock */
}

.timer-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.timer-circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    /* Transition for smooth ticking */
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    font-family: sans-serif;
    pointer-events: none;
}

/* Timer Colors */
.timer-normal {
    stroke: #3b82f6;
}
/* Blue */
.timer-warning {
    stroke: #f59e0b;
}
/* Amber */
.timer-danger {
    stroke: #ef4444;
}
/* Red */

/* Dark Mode Overrides */
.dark-theme .input-group-unified {
    background: #1e293b;
    border-color: #334155;
}

    .dark-theme .input-group-unified input {
        color: white;
    }

.dark-theme .icon-divider {
    background-color: #334155;
}

.dark-theme .icon-action-simple {
    color: #64748b;
}

    .dark-theme .icon-action-simple:hover {
        color: #60a5fa;
    }

.dark-theme .close-button-modern:hover {
    background-color: #334155;
}

.dark-theme .otp-code {
    color: #f1f5f9;
}

.dark-theme .timer-bg {
    stroke: #334155;
}

.dark-theme .timer-text {
    color: #94a3b8;
}

/* Make the account icons look clickable */
.account-icon,
.account-initial {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .account-icon:hover,
    .account-initial:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* Ensure QR code has a clean white box, even in dark mode */
#otp-qrcode-container {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block; /* Fits to content */
}

