/* Settings Container */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.settings-header {
    padding: 20px 0;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Settings Cards */
.settings-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.settings-card .card-header {
    padding: 25px 30px 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: between;
}

.settings-card .card-body {
    padding: 25px 30px 30px;
}

.header-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--dark);
    margin: 0;
}

.card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

/* Buttons */
.btn-edit {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    color: white;
}

/* Profile Info Grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.info-value {
    font-weight: 500;
    color: var(--dark);
    font-size: 1rem;
    margin: 0;
}

/* Security Status */
.security-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 500;
}

/* Profile Picture */
.picture-card .card-body {
    padding: 30px;
}

.profile-picture-wrapper {
    position: relative;
    display: inline-block;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow);
}

.profile-picture-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow);
}

.picture-help {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    background: none;
    border: 1px solid #e9ecef;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    text-decoration: none;
}

.quick-action-btn:hover {
    background: var(--light);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(5px);
}

.quick-action-btn i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 25px 30px 20px;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.modal-body {
    padding: 25px 30px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 30px 25px;
}

/* Profile Picture Upload */
.profile-picture-upload {
    text-align: center;
}

.upload-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.upload-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.upload-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 3px solid var(--primary-light);
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.upload-wrapper:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.upload-overlay span {
    font-size: 0.8rem;
    font-weight: 500;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.1);
}

.input-group .form-control {
    border-right: none;
}

.toggle-password {
    background: #e9ecef;
    border-radius: 0 8px 8px 0;
    color: var(--primary);
}

.toggle-password:hover {
    background: #e9ecef;
    border-radius: 0 8px 8px 0;
    color: var(--primary);
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .settings-header {
        padding: 15px 0;
    }
    
    .page-title {
        font-size: 1.7rem;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .settings-card .card-header {
        padding: 20px 25px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .settings-card .card-body {
        padding: 20px 25px 25px;
    }
    
    .header-content {
        width: 100%;
    }
    
    .modal-body {
        padding: 20px 25px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 20px 25px;
    }
}

@media (max-width: 575.98px) {
    .settings-container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .profile-picture,
    .profile-picture-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .upload-preview,
    .upload-placeholder {
        width: 100px;
        height: 100px;
    }
}