:root {
    --primary-color: #f0b90b;
    --primary-hover: #f8d33a;
    --background-dark: #1e2329;
    --background-light: #2b3139;
    --background-lighter: #3a424d;
    --text-primary: #eaecef;
    --text-secondary: #b7bdc6;
    --text-tertiary: #848e9c;
    --border-color: #474d57;
    --border-light: #5a6372;
    --error-color: #f6465d;
    --success-color: #0ecb81;
    --warning-color: #f0b90b;
    --info-color: #1793ff;
    --card-bg: #2b3139;
    --bg-primary: #1e2329;
    --bg-secondary: #2b3139;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Dashboard Layout */
.dashboard-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
}

/* Settings Container */
.settings-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.lg\:grid-cols-4 {
    grid-template-columns: 1fr 3fr;
}

/* Settings Sidebar */
.settings-sidebar {
    background: #000000;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-card {
    background: #000000;
    border: 1px solid #222222;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Settings Navigation */
.settings-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav-item {
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
}

.settings-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.1), transparent);
    transition: left 0.6s ease;
}

.settings-nav-link:hover::before {
    left: 100%;
}

.settings-nav-link:hover,
.settings-nav-link.active {
    background: rgba(240, 185, 11, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.15);
}

.settings-nav-icon {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.settings-nav-link:hover .settings-nav-icon,
.settings-nav-link.active .settings-nav-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Settings Main */
.settings-main {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    animation: slideInRight 0.5s ease-out;
}

/* Settings Sections */
.settings-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.settings-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.settings-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Settings Cards */
.settings-card {
    background: var(--background-dark);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.settings-card:hover::before {
    transform: scaleY(1);
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-light);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--success-color), #0aa371);
}

input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 2px 10px rgba(240, 185, 11, 0.3);
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.4);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-lighter);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error-color);
    color: white;
    box-shadow: 0 2px 10px rgba(246, 70, 93, 0.3);
}

.btn-danger:hover {
    background: #f82a47;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(246, 70, 93, 0.4);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-enabled {
    background: rgba(14, 203, 129, 0.15);
    color: var(--success-color);
}

.status-disabled {
    background: rgba(246, 70, 93, 0.15);
    color: var(--error-color);
}

/* QR Code Container */
.qr-code-container {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    border-color: #000000;
}

#qr-code {
    width: 160px;
    height: 160px;
    background: #000000;
    /* margin: 0 auto 1rem; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #000;
    font-weight: 500;
}

/* API Key Items */
.api-key-item {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.api-key-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.api-key-secret {
    font-family: 'Courier New', monospace;
    background: var(--background-dark);
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.text-right {
    text-align: right;
}

.text-lg {
    font-size: 1.125rem;
}

.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

/* Grid Utilities */
.grid-cols-1 {
    grid-template-columns: 1fr;
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gap-4 {
    gap: 1rem;
}

/* Text Colors */
.text-gray-600 {
    color: var(--text-secondary);
}

.text-gray-500 {
    color: var(--text-tertiary);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    word-wrap: break-word;
}

.toast-success {
    background: var(--success-color);
}

.toast-error {
    background: var(--error-color);
}

/* Theme Options */
.theme-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.theme-option {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--background-light);
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(240, 185, 11, 0.1);
}

.theme-preview-box {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.theme-light .theme-preview-box {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.theme-dark .theme-preview-box {
    background: linear-gradient(135deg, var(--background-dark), var(--background-light));
}

.theme-system .theme-preview-box {
    background: linear-gradient(45deg, #ffffff 50%, var(--background-dark) 50%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    
    .settings-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .settings-nav-item {
        margin-bottom: 0;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .settings-nav-link {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
    }
    
    .settings-main {
        padding: 1.5rem;
    }
    
    .settings-card {
        padding: 1.25rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .theme-preview {
        grid-template-columns: 1fr;
    }
}

/* 2FA Specific Styles */
.two-factor-section {
    background: var(--background-dark);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.two-factor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.two-factor-info {
    flex: 1;
}

.two-factor-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.two-factor-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.two-factor-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge-lg {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.two-factor-setup {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.setup-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.qr-section {
    text-align: center;
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    /* border: 1px solid var(--border-color); */
}

.qr-code-img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.secret-key {
    background: var(--background-dark);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.secret-code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.verification-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.verification-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    max-width: 300px;
}

.verification-input {
    flex: 1;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.security-tips {
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.security-tips-title {
    font-weight: 600;
    color: var(--warning-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-tips-list {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    padding-left: 1.25rem;
}

.security-tips-list li {
    margin-bottom: 0.25rem;
}

/* 2FA Action Buttons */
.two-factor-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive adjustments for 2FA */
@media (max-width: 768px) {
    .two-factor-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .two-factor-status {
        align-self: flex-start;
    }
    
    .two-factor-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .verification-input-group {
        flex-direction: column;
    }
    
    .setup-step {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
}


/* Change Limit Notification Styles */
.change-limit-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.change-limit-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
}

.change-limit-notification.warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.change-limit-notification.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.change-limit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.change-limit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.change-limit-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.change-limit-description {
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.change-limit-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.change-limit-progress-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #6bcf7f, #4facfe);
}

.change-limit-progress-bar.warning {
    background: linear-gradient(90deg, #ffd93d, #ff6b6b);
}

.change-limit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.change-limit-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.change-limit-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.change-limit-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.change-limit-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.change-limit-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.change-limit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .change-limit-stats {
        grid-template-columns: 1fr;
    }
    
    .change-limit-actions {
        flex-direction: column;
    }
    
    .change-limit-btn {
        text-align: center;
    }
}

/* Security Section Styles */
.security-overview {
    margin-bottom: 2rem;
}

.security-status-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.security-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.security-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.security-status-info h4 {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.security-status-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.security-section-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.security-section-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.security-section-info {
    flex: 1;
}

.security-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.security-section-description {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.security-section-status {
    margin-left: 1rem;
}

.security-section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Security Setup Steps */
.security-setup-steps {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.setup-steps {
    space-y: 2rem;
}

.setup-step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.step-description {
    color: #6b7280;
    margin: 0 0 1rem 0;
}

/* Authenticator Apps */
.authenticator-apps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    /* border: 1px solid #e5e7eb; */
    border-radius: 8px;
    background: #000000;
    transition: all 0.2s ease;
}

.app-option:hover {
    border-color: #3b82f6;
    background: #222222;
}

.app-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

/* QR Code Section */
.qr-code-container {
    text-align: center;
    padding: 2rem;
    background: #000000;
    border-radius: 12px;
    border: 1px solid #000000;
}

.qr-placeholder {
    color: #9ca3af;
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Secret Key Section */
.secret-key-section {
    margin-top: 1.5rem;
}

.secret-code-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1f2937;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.secret-code {
    flex: 1;
    word-break: break-all;
}

/* Verification Section */
.verification-input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 300px;
}

.verification-input {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding: 0.75rem 1rem;
}

/* Security Tips */
.security-tips {
    background: #fef3cd;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
}

.security-tips-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #92400e;
}

.security-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: 0.5rem;
}

.security-tips-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #92400e;
    font-size: 0.875rem;
}

.security-tips-list li::before {
    content: '•';
    color: #f59e0b;
}

/* Security Preferences */
.security-preference-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.preference-info {
    flex: 1;
}

.preference-label {
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.preference-description {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-fill[data-strength="0"] { width: 20%; background: #ef4444; }
.strength-fill[data-strength="1"] { width: 40%; background: #f59e0b; }
.strength-fill[data-strength="2"] { width: 60%; background: #eab308; }
.strength-fill[data-strength="3"] { width: 80%; background: #84cc16; }
.strength-fill[data-strength="4"] { width: 100%; background: #10b981; }

/* Session Management */
.session-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.session-item.current {
    border-color: #10b981;
    background: #f0fdf4;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.session-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.session-item.current .session-icon {
    background: #10b981;
    color: white;
}

.session-details {
    flex: 1;
}

.session-device {
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.session-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.session-time {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .security-section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .security-section-status {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .security-section-actions {
        flex-direction: column;
    }
    
    .security-preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .verification-input-group {
        flex-direction: column;
    }
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Recovery Codes Styles */
.recovery-codes-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.recovery-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recovery-status i {
  font-size: 1.5rem;
}

.recovery-status-text h4 {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #1e293b;
}

.recovery-status-text p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

.recovery-actions {
  display: flex;
  gap: 0.5rem;
}

/* Recovery Modal Styles */
.recovery-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.recovery-code-item {
  background: white;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: center;
  font-size: 0.875rem;
}

/* Recovery Help Styles */
.recovery-help-steps {
  counter-reset: step;
}

.recovery-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.recovery-step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.recovery-step h5 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.recovery-step p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

/* Add to your existing CSS */
.btn-disabled {
  background-color: #9ca3af !important;
  border-color: #9ca3af !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.btn-disabled:hover {
  background-color: #9ca3af !important;
  border-color: #9ca3af !important;
  transform: none !important;
}

.security-requirement-warning {
  border-left: 4px solid #f59e0b;
}




/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #111111;
    border: 1px solid #222222;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #222222;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .close {
    color: #888888;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-header .close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 24px;
    border-top: 1px solid #222222;
    background: rgba(255, 255, 255, 0.02);
    gap: 12px;
}

/* Button Styles for Modal */
.btn-disabled {
    background: #333333 !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-disabled:hover {
    background: #333333 !important;
    color: #666666 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}