/* Elegant and Impressive Design Enhancements */

/* Profile Page - Elegant Form Design */
.profile-screen {
    background: var(--surface-base);
    min-height: 100vh;
    padding-bottom: 80px;
}

.profile-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(245, 200, 106, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.save-button {
    background: linear-gradient(135deg, #F5C86A 0%, #D4C5A9 100%);
    color: #0B0B0C;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(245, 200, 106, 0.3);
    letter-spacing: -0.01em;
}

.save-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 200, 106, 0.4);
}

.save-button:active:not(:disabled) {
    transform: translateY(0);
}

.save-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Activity Page - Elegant Activity List */
.activity-screen {
    background: var(--surface-base);
    min-height: 100vh;
    padding-bottom: 80px;
}

.activity-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 200, 106, 0.2);
    transform: translateX(4px);
}

.activity-item:hover::before {
    opacity: 1;
}

.activity-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 200, 106, 0.1);
    border-radius: 10px;
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-description {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.activity-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: rgba(245, 200, 106, 0.15);
    border-radius: 6px;
}

.activity-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.activity-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.activity-empty p {
    font-size: 16px;
    font-weight: 500;
}

/* Documents Tab - Elegant Document List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.document-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 200, 106, 0.2);
    transform: translateX(4px);
}

.document-item:hover::before {
    opacity: 1;
}

.document-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 200, 106, 0.1);
    border-radius: 12px;
    color: var(--gold-primary);
}

.document-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.document-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.document-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.document-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: capitalize;
    padding: 4px 10px;
    background: rgba(245, 200, 106, 0.15);
    border-radius: 6px;
}

.document-size {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.document-actions {
    flex-shrink: 0;
}

.document-view-btn {
    padding: 8px 16px;
    background: rgba(245, 200, 106, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 200, 106, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.document-view-btn:hover {
    background: rgba(245, 200, 106, 0.25);
    border-color: rgba(245, 200, 106, 0.5);
    transform: translateY(-1px);
}

.documents-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.documents-placeholder-text {
    font-size: 16px;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner p {
    font-size: 16px;
    font-weight: 500;
    margin-top: 16px;
}

/* Enhanced Treatment Plan Display */
.treatment-plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.treatment-plan-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 200, 106, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.treatment-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.treatment-plan-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.treatment-icon {
    width: 24px;
    height: 24px;
    color: var(--gold-primary);
}

.treatment-plan-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.ai-generated-badge {
    padding: 6px 12px;
    background: rgba(245, 200, 106, 0.15);
    color: var(--gold-primary);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-months {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #F5C86A 0%, #D4C5A9 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(245, 200, 106, 0.5);
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.metric-value.gold {
    color: var(--gold-primary);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Treatment Cost Card Enhancement */
.treatment-cost-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(245, 200, 106, 0.2);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.treatment-cost-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 200, 106, 0.4);
    box-shadow: 0 8px 32px rgba(245, 200, 106, 0.2);
}

.cost-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(245, 200, 106, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cost-icon {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-primary);
}

.cost-value {
    flex: 1;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.cost-arrow {
    font-size: 24px;
    color: var(--gold-primary);
    font-weight: 700;
}

/* Treatment Phases Enhancement */
.treatment-phases-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
}

.phases-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.phases-icon {
    width: 24px;
    height: 24px;
    color: var(--gold-primary);
}

.phases-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.phase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.phase-item:last-child {
    border-bottom: none;
}

.phase-item:hover {
    padding-left: 8px;
}

.phase-period {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.phase-cost {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: -0.01em;
}

.phase-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gold-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phase-item:hover .phase-indicator {
    opacity: 1;
}

/* Responsive Enhancements */
@media (max-width: 767px) {
    .profile-content,
    .activity-content {
        padding: 16px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .activity-item,
    .document-item {
        padding: 14px 16px;
    }
    
    .progress-metrics {
        gap: 12px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .cost-value {
        font-size: 28px;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-item,
.document-item,
.phase-item {
    animation: fadeIn 0.4s ease-out;
}

/* Elegant Scrollbar */
.activity-content::-webkit-scrollbar,
.profile-content::-webkit-scrollbar {
    width: 6px;
}

.activity-content::-webkit-scrollbar-track,
.profile-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.activity-content::-webkit-scrollbar-thumb,
.profile-content::-webkit-scrollbar-thumb {
    background: rgba(245, 200, 106, 0.3);
    border-radius: 3px;
}

.activity-content::-webkit-scrollbar-thumb:hover,
.profile-content::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 200, 106, 0.5);
}
