/* Settings Page Styles */

/* General Settings Styles */
.settings-card {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.settings-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.35rem 0.35rem 0 0;
    border-bottom: 1px solid #e3e6f0;
}

.settings-card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    color: #5a5c69;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* Button Styles */
.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.35rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-cancel {
    background-color: #6c757d;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.35rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.btn-cancel:hover {
    background-color: #5a6268;
    color: white;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: none;
    margin: 0 0.125rem;
    cursor: pointer;
}

.btn-edit {
    background-color: #667eea;
    color: white;
}

.btn-edit:hover {
    background-color: #5a6fd8;
    color: white;
}

.btn-delete {
    background-color: #e74a3b;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
    color: white;
}

.btn-toggle {
    background-color: #28a745;
    color: white;
}

.btn-toggle:hover {
    background-color: #218838;
    color: white;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Image Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 0.35rem;
    padding: 1rem;
    text-align: center;
    background-color: #f8f9fc;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.25rem;
}

/* Color Picker */
.color-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 0.25rem;
    border: 2px solid #e3e6f0;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Progress Bars */
.progress-container {
    background: #e9ecef;
    border-radius: 0.25rem;
    height: 20px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tables */
.settings-table {
    background: white;
    border-radius: 0.35rem;
    overflow: hidden;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.settings-table th {
    background-color: #f8f9fc;
    border: none;
    font-weight: 600;
    color: #5a5c69;
    padding: 1rem;
}

.settings-table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.settings-table tbody tr {
    border-bottom: 1px solid #e3e6f0;
}

.settings-table tbody tr:last-child {
    border-bottom: none;
}

.settings-table tbody tr:hover {
    background-color: #f8f9fc;
}

/* User Avatar */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e3e6f0;
}

.user-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Profile Avatar */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e3e6f0;
    margin: 0 auto 1rem;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 3rem;
    margin: 0 auto 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar-placeholder:hover {
    transform: scale(1.05);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background-color: #dc3545;
    width: 25%;
}

.strength-fair {
    background-color: #ffc107;
    width: 50%;
}

.strength-good {
    background-color: #17a2b8;
    width: 75%;
}

.strength-strong {
    background-color: #28a745;
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.text-weak {
    color: #dc3545;
}

.text-fair {
    color: #ffc107;
}

.text-good {
    color: #17a2b8;
}

.text-strong {
    color: #28a745;
}

/* Toggle Switch */
.status-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.35rem;
    padding: 2rem;
    text-align: center;
    background: #f8f9fc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: #e3f2fd;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e3f2fd;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Module Cards */
.module-item {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fc;
    transition: all 0.3s ease;
}

.module-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Health Indicators */
.health-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.health-good {
    background-color: #28a745;
}

.health-warning {
    background-color: #ffc107;
}

.health-danger {
    background-color: #dc3545;
}

/* Copy Button */
.copy-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #f8f9fc;
    color: #5a6fd8;
}

.copy-success {
    color: #28a745 !important;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Required Field */
.required-field::after {
    content: " *";
    color: #e74a3b;
    font-weight: bold;
}

/* Help Text */
.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Form Control Focus */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Modal Styles */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.modal-title {
    font-weight: 600;
}

.close {
    color: white;
    opacity: 0.8;
}

.close:hover {
    color: white;
    opacity: 1;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.35rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-card-body {
        padding: 1rem;
    }
    
    .btn-save, .btn-cancel {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .settings-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .module-item {
        padding: 1rem;
    }
    
    .module-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Card Click Animation */
.settings-card.clicked {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}
