/* REFERTIUS - Clinical Settings Styles */

.settings-section {
    min-height: 100vh;
}

/* Navigation Menu - Tab Style */
.settings-nav {
    display: flex;
    gap: 2px;
    padding: 0 20px;
    background: transparent;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.02);
}

.nav-item.active {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--border);
    border-bottom-color: var(--bg-card);
    /* Merge with card below */
    font-weight: 600;
}

.nav-item svg {
    width: 16px;
    height: 16px;
    margin-top: -1px;
}

/* Settings Cards */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
    /* No shadow for flat clinical feel */
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
    border: none;
    padding: 0;
}

.card-description {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Profile Info */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-value {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg-app);
}

/* Status Badge */
.letterhead-status {
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.status-badge svg {
    width: 16px;
    height: 16px;
}

.status-none {
    background: #f3f4f6;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.status-active {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

/* Upload Area */
.upload-area {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-element);
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    color: var(--text-tertiary);
    width: 48px;
    height: 48px;
}

.upload-area:hover .upload-icon {
    color: var(--primary);
}

.upload-area h3 {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.upload-area p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.upload-hint {
    font-size: 11px !important;
    color: var(--text-tertiary) !important;
    margin-top: 8px !important;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-element);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.file-size {
    font-size: 12px;
    color: var(--text-tertiary);
}

.file-actions {
    display: flex;
    gap: 12px;
}

/* Help Card */
.help-card {
    background: #fff;
    border-left: 3px solid var(--primary);
}

.help-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 13px;
}

.help-content ul {
    padding-left: 18px;
    margin-top: 8px;
}

.help-content li {
    margin-bottom: 4px;
}

/* Danger Zone */
.danger-zone {
    border-color: #fee2e2;
}

.danger-zone .card-header {
    border-bottom-color: #fee2e2;
}

.danger-zone h2 {
    color: var(--danger);
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.danger-info h3 {
    font-size: 14px;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.danger-separator {
    height: 1px;
    background: var(--border);
}


/* Responsive */
@media (max-width: 768px) {
    .settings-nav {
        padding: 0 16px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        flex-shrink: 0;
    }

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

    .danger-item {
        flex-direction: column;
        gap: 16px;
    }

    .danger-item button {
        width: 100%;
    }

    .upload-area {
        padding: 32px 16px;
    }
}