/* 2FA Modal Styles - konsistent mit invite modal design */
#twofa-modal .modal-card {
    width: 90%;
    max-width: 600px;
    background-color: #333;
    color: white;
}

#twofa-modal .modal-card-head {
    background-color: #333;
    border-bottom: 2px solid #C0392B;
}

#twofa-modal .modal-card-title {
    color: white !important;
    font-family: 'Titillium Web', Arial, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

#twofa-modal .modal-card-body {
    background-color: #333;
    color: white;
    max-height: 70vh;
    overflow-y: auto;
}

#twofa-modal .modal-card-foot {
    background-color: #333;
    border-top: 2px solid #C0392B;
    justify-content: space-between;
}

/* Typography */
#twofa-modal .label {
    color: white !important;
    font-family: 'Open Sans', Arial, sans-serif !important;
    font-weight: 600 !important;
}

#twofa-modal .subtitle {
    color: white !important;
    font-family: 'Titillium Web', Arial, sans-serif !important;
    font-size: 1.8rem !important;
    margin-bottom: 0.75rem !important;
    border-left: 4px solid #C0392B;
    padding-left: 1rem;
    font-weight: 600 !important;
}

#twofa-modal h1,
#twofa-modal h2,
#twofa-modal h3,
#twofa-modal h4,
#twofa-modal h5,
#twofa-modal h6 {
    color: white !important;
    font-family: 'Titillium Web', Arial, sans-serif !important;
    font-weight: 600 !important;
}

#twofa-modal p {
    color: #bbb;
    font-family: 'Open Sans', Arial, sans-serif !important;
    line-height: 1.5;
    font-weight: 400;
}

/* Base text styling */
#twofa-modal {
    font-family: 'Open Sans', Arial, sans-serif !important;
}

#twofa-modal span:not(.icon) {
    font-family: 'Open Sans', Arial, sans-serif !important;
}

#twofa-modal div {
    font-family: 'Open Sans', Arial, sans-serif !important;
}

/* Input Fields */
#twofa-modal .input {
    background-color: #252525;
    border: 2px solid #C0392B;
    color: white;
    font-family: 'Open Sans', Arial, sans-serif !important;
}

#twofa-modal .input:focus {
    border-color: #C0392B !important;
    box-shadow: 0 0 0 0.125em rgb(192 57 43 / 25%);
    background-color: #252525;
    color: white;
}

#twofa-modal .input::placeholder {
    color: #bbb;
}

#twofa-modal .input.code-input {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-align: center;
}

#twofa-modal .input.is-large {
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.2em;
}

/* Icons */
#twofa-modal .icon {
    color: #fff;
}

/* Button Icons sicherstellen */
#twofa-modal .button .icon {
    color: inherit !important;
    margin-right: 0.25rem;
}

#twofa-modal .button .icon i {
    font-size: 1rem;
}

/* Buttons */
#twofa-modal .button {
    border-radius: 6px;
    font-family: 'Open Sans', Arial, sans-serif !important;
    font-weight: 600;
    transition: all 0.2s ease;
    width: auto !important;
    max-width: 180px;
    padding: 0.5rem 1rem;
}

#twofa-modal .button.is-success {
    background-color: #C0392B;
    border-color: #C0392B;
    color: white;
    width: auto !important;
    max-width: 180px;
}

#twofa-modal .button.is-success:hover {
    background-color: #a0321f;
    border-color: #a0321f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(192 57 43 / 30%);
    width: auto !important;
}

#twofa-modal .button.is-warning {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
}

#twofa-modal .button.is-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(243 156 18 / 30%);
}

#twofa-modal .button.is-danger {
    background-color: #C0392B;
    border-color: #C0392B;
    color: white;
}

#twofa-modal .button.is-danger:hover {
    background-color: #a0321f;
    border-color: #a0321f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(192 57 43 / 30%);
}

#twofa-modal .button.is-info {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

#twofa-modal .button.is-info:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(52 152 219 / 30%);
}

#twofa-modal .button:not(.is-success, .is-warning, .is-info) {
    background-color: #37414e;
    color: white;
    border: 2px solid #C0392B;
    width: auto !important;
    max-width: 180px;
}

#twofa-modal .button:not(.is-success, .is-warning, .is-info):hover {
    background-color: #404040;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}

/* QR Code Container */
#twofa-modal .qr-container {
    background-color: #252525;
    border: 2px solid #C0392B;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#twofa-modal .qr-container img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    background-color: white;
    padding: 10px;
}

/* Secret Code Display */
#twofa-modal .secret-code {
    background-color: #252525;
    color: #C0392B;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #C0392B;
    letter-spacing: 0.1em;
    word-break: break-all;
}

/* Recovery Codes */
#twofa-modal .recovery-codes {
    background-color: #252525;
    border: 2px solid #C0392B;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

#twofa-modal .recovery-code {
    background-color: #3b3b3b;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    transition: background-color 0.2s;
}

#twofa-modal .recovery-code:hover {
    background-color: #404040;
}

#twofa-modal .recovery-code code {
    color: #f3f3f3;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Notifications */
#twofa-modal .notification {
    border-radius: 6px;
    margin-bottom: 1rem;
}

#twofa-modal .notification.is-success {
    background-color: rgb(39 174 96 / 10%);
    border: 2px solid #27ae60;
    color: #2ecc71;
}

#twofa-modal .notification.is-danger {
    background-color: rgb(231 76 60 / 10%);
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

#twofa-modal .notification.is-warning {
    background-color: rgb(243 156 18 / 10%);
    border: 2px solid #f39c12;
    color: #f39c12;
}

/* Help Text */
#twofa-modal .help {
    color: #bbb;
    font-size: 0.9em;
    margin-top: 0.25rem;
    font-family: 'Open Sans', Arial, sans-serif !important;
}

#twofa-modal .help.has-text-warning {
    color: #f39c12;
}

/* Box Styling */
#twofa-modal .box {
    background-color: #252525;
    border: 2px solid #C0392B;
    border-radius: 10px;
    margin-bottom: 1rem;
}

#twofa-modal .box.has-background-dark {
    background-color: #1a1a1a;
    text-align: center;
}

/* Status Tag Größe begrenzen */
#twofa-modal .box.has-background-dark .tag {
    max-width: 200px;
    margin: 0 auto;
}

/* Status Tag Icon Styling */
#twofa-modal .tag .icon,
#twofa-modal .tag i {
    margin-right: 0.5rem;
}

/* Field Spacing */
#twofa-modal .field {
    margin-bottom: 1.5rem;
}

#twofa-modal .field:last-child {
    margin-bottom: 0;
}

/* Button Container Zentrierung */
#twofa-modal .field.has-text-centered,
#twofa-modal .field.mt-4 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Checkbox Styling */
#twofa-modal input[type="checkbox"] {
    accent-color: #C0392B;
    transform: scale(1.2);
    margin-right: 0.5rem;
}

#twofa-modal .checkbox {
    color: white;
    font-family: 'Open Sans', Arial, sans-serif !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#twofa-modal .control {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Notification Text */
#twofa-modal .notification span:not(.icon) {
    font-family: 'Open Sans', Arial, sans-serif !important;
}

/* Footer Text */
#twofa-modal .modal-card-foot span:not(.icon) {
    font-family: 'Open Sans', Arial, sans-serif !important;
}

/* General Text Content */
#twofa-modal .has-text-centered,
#twofa-modal .has-text-grey,
#twofa-modal .has-text-success,
#twofa-modal .has-text-warning {
    font-family: 'Open Sans', Arial, sans-serif !important;
}

/* Loading State */
#twofa-modal .fa-spinner {
    color: #C0392B;
}

/* Responsive Design */
@media (width <= 768px) {
    #twofa-modal .modal-card {
        width: 95%;
        margin: 1rem;
    }
    
    #twofa-modal .recovery-codes {
        grid-template-columns: 1fr;
    }
    
    #twofa-modal .qr-container img {
        max-width: 150px;
    }
    
    #twofa-modal .input.code-input,
    #twofa-modal .input.is-large {
        font-size: 1.25rem;
    }
}

/* Scrollbar Styling für Modal Body */
#twofa-modal .modal-card-body::-webkit-scrollbar {
    width: 8px;
}

#twofa-modal .modal-card-body::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

#twofa-modal .modal-card-body::-webkit-scrollbar-thumb {
    background: #C0392B;
    border-radius: 4px;
}

#twofa-modal .modal-card-body::-webkit-scrollbar-thumb:hover {
    background: #a0321f;
}

/* Form Steps */
#twofa-modal .steps-container {
    margin-bottom: 2rem;
}

#twofa-modal .step-separator {
    border-top: 1px solid #555;
    margin: 1.5rem 0;
}

/* Success State */
#twofa-modal .has-text-success {
    color: #2ecc71 !important;
}
