/* Modern Settings Page */
.settings-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    /* padding: 0 2rem; */ /* Handled by body > main padding usually */
    overflow-x: hidden; /* From general overflow rules */
}

.settings-header {
    margin-bottom: 4rem;
}

.settings-header h1 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.settings-header p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
}

/* Settings Navigation */
.settings-nav {
    position: sticky;
    top: 8rem; /* Assuming header height + some padding */
    height: fit-content;
}

.settings-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: max-content;
}

.settings-nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.settings-nav-item a:hover {
    background: #f5f5f5;
    color: #000;
}

.settings-nav-item a.active {
    background: #000;
    color: #fff;
}

.settings-nav-item i {
    font-size: 1.25rem;
    opacity: 80%;
}

/* Vendor Profile Tab Styles */
.settings-nav-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.settings-nav-item.disabled .vendor-profile-link {
    cursor: not-allowed;
}

.settings-nav-item.disabled .vendor-profile-link:hover {
    background-color: transparent;
    color: inherit;
}

/* Settings Content */
.settings-content {
    min-height: 600px;
}

.settings-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.settings-section.active {
    display: block;
}

.settings-section-header {
    margin-bottom: 2rem;
}

.settings-section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.settings-section-header p {
    font-size: 0.9375rem;
    color: #666;
    max-width: 600px;
}

/* Settings Forms */
.settings-form {
    display: grid;
    gap: 2rem;
    max-width: 600px;
}

.form-group-grid { /* Used within settings forms for 2-column layout */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* .form-group label and .form-control are in forms.css */
/* Specific overrides for .form-control within .settings-form if needed:
.settings-form .form-control {
    padding: 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid #eee;
    background: #fff;
    color: #000;
}
.settings-form .form-control:focus {
    border-color: #000;
}
.settings-form .form-control:hover {
    border-color: #666;
}
*/

/* Settings Cards */
.settings-cards {
    display: grid;
    gap: 1px;
    background: #eee;
}

.settings-card {
    background: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.settings-card:hover {
    background: #f8f8f8;
}

.settings-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.settings-card-icon {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-card-icon i {
    font-size: 1.25rem;
    color: #000;
}

.settings-card-text h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.settings-card-text p {
    font-size: 0.875rem;
    color: #666;
}

.settings-card-action {
    flex-shrink: 0;
}

/* Save Button */
.settings-save {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 1rem 0;
    z-index: 100;
    display: none;
}

.settings-save.visible {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.settings-save-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.settings-save-text {
    font-size: 0.875rem;
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0%; }
    to { opacity: 100%; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Service Tags Styling */
.service-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
}

.service-tag:hover,
.service-tag.selected {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.service-tag i {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.service-tag:hover i {
    opacity: 1;
}

.service-tag.selected:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Portfolio Items Styling */
.portfolio-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.portfolio-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.portfolio-item-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #000;
}

.remove-portfolio-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-portfolio-item:hover {
    background: #f8d7da;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-uploads-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.portfolio-image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.portfolio-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image-preview .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-preview .remove-image:hover {
    background: rgba(220, 53, 69, 1);
}

.upload-loading,
.upload-error,
.upload-warning {
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.upload-loading {
    background: #e3f2fd;
    color: #1976d2;
}

.upload-error {
    background: #ffebee;
    color: #c62828;
}

.upload-warning {
    background: #fff3e0;
    color: #ef6c00;
}

/* File Upload Styling */
.file-upload-container {
    position: relative;
}

.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.file-upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
}

.file-upload-area i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
    display: block;
}

.file-upload-area span {
    color: #666;
    font-size: 0.875rem;
}

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

.file-list {
    margin-top: 1rem;
} 