@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --danger-color: #ef4444;
    --success-color: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top right, rgba(156, 163, 175, 0.1), transparent),
                      radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-container {
    max-width: 1000px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    height: 8px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 25%;
    transition: width 0.3s ease;
}
.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Typography */
h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Logo Placeholder */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e5e7eb, #ffffff);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #d1d5db;
    color: var(--primary-color);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.5);
    background: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio & Checkbox styled as cards */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 120px;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    margin: 0;
    height: 100%;
    text-align: center;
}

.radio-card input:checked + label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.radio-card input:hover:not(:checked) + label {
    background: rgba(255, 255, 255, 0.9);
    border-color: #9ca3af;
}

/* Pain Slider */
.slider-container {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.slider-labels span:nth-child(1) { color: var(--success-color); }
.slider-labels span:nth-child(2) { color: #f59e0b; }
.slider-labels span:nth-child(3) { color: var(--danger-color); }

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--success-color) 0%, #f59e0b 50%, var(--danger-color) 100%);
    outline: none;
    padding: 0;
    border: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid var(--text-primary);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.small-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(209, 213, 219, 0.5);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: #9ca3af;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Step Logic */
.step {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Specifics */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.request-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s;
}

.request-item:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.request-item.severe-pain {
    background: rgba(254, 226, 226, 0.6); /* red-100 */
    border-color: rgba(239, 68, 68, 0.3);
}

.request-item.severe-pain:hover {
    background: rgba(254, 226, 226, 0.9);
}

.request-item.archived {
    opacity: 0.6;
    background: rgba(243, 244, 246, 0.5); /* gray-100 */
}

.request-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.request-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.request-details {
    font-size: 0.95rem;
    background: rgba(255,255,255,0.5);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.request-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(209, 213, 219, 0.5);
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.tab:hover:not(.active) {
    background: rgba(255,255,255,0.8);
}

/* Custom logo image */
.logo-img {
    max-width: 250px;
    height: auto;
    background-color: #ffffff;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    mix-blend-mode: normal;
    margin-bottom: 1rem;
}

/* Reason Selection Grid */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.reason-card label {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 0.5rem;
}

.reason-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Office Hours in Success Step */
.office-hours {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.office-hours h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.office-hours ul {
    list-style: none;
    padding: 0;
}

.office-hours li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(209, 213, 219, 0.3);
    display: flex;
    justify-content: space-between;
}

.office-hours li:last-child {
    border-bottom: none;
}
