/* Security Settings Styles */
.security-settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.security-settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.security-icon {
    font-size: 28px;
}

.security-settings-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.security-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-info {
    flex: 1;
}

.section-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.password-strength,
.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.status-strong,
.status-dot.status-enabled {
    background-color: #10b981;
}

.status-dot.status-medium {
    background-color: #f59e0b;
}

.status-dot.status-weak {
    background-color: #ef4444;
}

.status-dot.status-available,
.status-dot.status-warning {
    background-color: #f59e0b;
}

.btn-action {
    padding: 10px 24px;
    border: 2px solid #059669;
    background: #ffffff;
    color: #059669;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action:hover {
    background: #f0fdf4;
    border-color: #047857;
    color: #047857;
}

.btn-action.btn-danger {
    border-color: #dc2626;
    color: #dc2626;
}

.btn-action.btn-danger:hover {
    background: #fef2f2;
    border-color: #b91c1c;
    color: #b91c1c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #9ca3af;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #4b5563;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

#password-strength-meter {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

#password-strength-meter::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: #10b981;
    transition: all 0.3s;
}

#password-strength-meter.weak::after {
    width: 33%;
    background: #ef4444;
}

#password-strength-meter.medium::after {
    width: 66%;
    background: #f59e0b;
}

#password-strength-meter.strong::after {
    width: 100%;
    background: #10b981;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #059669;
    color: #ffffff;
}

.btn-primary:hover {
    background: #047857;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 24px;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
