* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f5 50%, #f5f8fb 100%);
    min-height: 100vh;
    color: #1a1a1a;
    overflow-x: hidden;
    line-height: 1.6;
}

/* App Container with Sidebar Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-menu span:nth-child(1) {
    top: 10px;
}

.hamburger-menu span:nth-child(2) {
    top: 18px;
}

.hamburger-menu span:nth-child(3) {
    top: 26px;
}

.hamburger-menu.active span:nth-child(1) {
    top: 18px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.hamburger-menu.active span:nth-child(3) {
    top: 18px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Sidebar Overlay (Mobile Only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 35px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.sidebar-header h1 {
    font-size: 1.75em;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sidebar-nav {
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.nav-item {
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    box-sizing: border-box;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.25) 0%, rgba(102, 126, 234, 0.15) 100%);
    border-left-color: #667eea;
    font-weight: 600;
    color: #ffffff;
    box-shadow: inset 0 0 20px rgba(102, 126, 234, 0.2);
}

.nav-icon {
    font-size: 1.3em;
}

.nav-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Main Content Area */
.main-content {
    width: calc(100vw - 280px);
    margin-left: 280px;
    padding: 40px 50px;
    background: transparent;
    box-sizing: border-box;
}

/* Page System */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    margin-bottom: 40px;
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.15em;
    color: #6c757d;
    font-weight: 400;
}

/* Intro/Home Page */
.intro-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.intro-card:hover::before {
    transform: scaleX(1);
}

.intro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #d0d7de;
}

.intro-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.intro-card h3 {
    font-size: 1.5em;
    color: #667eea;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.intro-card p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95em;
}

/* Clinical Pathways Page */
.pathways-content {
    max-width: 1200px;
    margin: 0 auto;
}

.pathways-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.auth-controls {
    display: flex;
    gap: 10px;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.language-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.language-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    top: 2px;
    font-family: inherit;
}

.language-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.language-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: transparent;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #f8f9fa;
}

.pathways-list {
    display: block;
}

.pathway-list-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pathway-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.pathway-list-item:hover {
    background-color: #f0f4ff;
    transform: translateX(4px);
    border-left: 3px solid #667eea;
    padding-left: 21px;
}

.pathway-list-icon {
    font-size: 2em;
    color: #667eea;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.pathway-list-info {
    flex: 1;
    min-width: 0;
}

.pathway-list-name {
    font-size: 1.05em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.pathway-list-meta {
    font-size: 0.9em;
    color: #666;
}

.pathway-list-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pathway-list-actions button {
    padding: 8px 16px;
    font-size: 0.9em;
    white-space: nowrap;
}

.language-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.language-btn {
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 4px;
    transition: all 0.2s;
}

.language-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.empty-pathways {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.empty-icon {
    font-size: 5em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-pathways h3 {
    font-size: 1.6em;
    color: #667eea;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-pathways p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 1em;
    line-height: 1.6;
}

/* Calculator Content */
.calculator-content {
    display: grid;
    gap: 20px;
}

/* Card Styles (for calculator page) */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #d0d7de;
}

.card h2 {
    color: #667eea;
    margin-bottom: 24px;
    font-size: 1.6em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
    text-align: left;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.card h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    font-size: 0.95em;
    letter-spacing: 0.2px;
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
    max-width: 280px;
    width: 100%;
    text-align: center;
    background: #ffffff;
    color: #2c3e50;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #f8f9fa;
}

.time-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
}

.time-input-group input {
    flex: 1;
    min-width: 0;
}

.shift-type-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shift-type-controls select {
    flex: 1;
    max-width: 300px;
}

.providers-header {
    margin-bottom: 15px;
    text-align: center;
}

.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d91 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Provider Management */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
    text-align: center;
}

details summary::before {
    content: '▶ ';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
    color: #667eea;
}

details[open] summary::before {
    transform: rotate(90deg);
}

.providers-list {
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.provider-row {
    display: grid;
    grid-template-columns: 200px 120px 80px 80px;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.provider-row:hover {
    background-color: #f9f9f9;
}

.provider-name-input,
.provider-rate-input {
    padding: 10px 14px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    width: 100%;
    background: #ffffff;
    color: #2c3e50;
}

.provider-name-input:focus,
.provider-rate-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #f8f9fa;
}

.provider-row.submitted .provider-name-input,
.provider-row.submitted .provider-rate-input {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.provider-row.submitted .provider-name-input:disabled,
.provider-row.submitted .provider-rate-input:disabled {
    opacity: 0.7;
}

.empty-state {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Shift Assignment */
.shift-type-selector {
    margin-bottom: 20px;
}

.shift-type-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.shift-type-dropdown {
    padding: 10px 14px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95em;
    width: 100%;
    max-width: 300px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
}

.shift-type-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.shifts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.shift-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.shift-box:hover {
    border-color: #d0d7de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shift-box h3 {
    color: #667eea;
    margin-bottom: 16px;
    font-size: 1.1em;
    text-align: center;
    font-weight: 600;
}

.shift-assignment {
    min-height: 100px;
}

.shift-provider-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95em;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
}

.shift-provider-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.shift-provider-dropdown:hover {
    border-color: #adb5bd;
}

.assigned-providers-list {
    margin-bottom: 15px;
}

.assigned-provider-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    border: 1px solid #c4d4ff;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.assigned-provider-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.assigned-provider-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.remove-provider-btn {
    padding: 4px 10px;
    font-size: 1.2em;
    line-height: 1;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Calculation Section */
.calculation-section {
    max-width: 500px;
    margin: 0 auto;
}

.result-box {
    margin-top: 20px;
    padding: 20px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-box h3 {
    color: white;
    margin-bottom: 10px;
    border: none;
    padding: 0;
    text-align: center;
    font-size: 1.1em;
}

.result-value {
    font-size: 3em;
    font-weight: 700;
    margin: 12px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    letter-spacing: -1px;
}

.result-value:hover {
    transform: scale(1.03);
}

.rickey-message {
    margin: 12px 0;
    padding: 12px 16px;
    background: #ff6b35;
    border: 2px solid #ff4500;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.7);
    }
}

.result-box.closed {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.result-box.no-providers {
    background: linear-gradient(135deg, #d4a574 0%, #b8865a 100%);
}

.result-box.capacity-red {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.result-box.capacity-yellow {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.result-box.capacity-green {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.result-box.capacity-negative {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
}

.result-breakdown {
    margin-top: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.breakdown-header {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
    text-align: center;
}

.breakdown-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.85em;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        width: 280px !important;
        max-width: 280px !important;
        min-width: 280px !important;
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 24px;
        padding-top: 70px;
    }

    .sidebar-nav {
        display: block;
    }

    .nav-item {
        width: 100%;
        border-left: 3px solid transparent;
        border-bottom: none;
    }

    .nav-item.active {
        border-left-color: #667eea;
        border-bottom: none;
    }

    .provider-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .provider-row .btn {
        width: 100%;
    }
    
    .shifts-container {
        grid-template-columns: 1fr;
    }
    
    .result-value {
        font-size: 2.5em;
    }
    
    .time-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-input-group .btn {
        width: 100%;
    }
    
    .shift-type-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shift-type-controls select {
        max-width: 100%;
    }
    
    .shift-type-controls .btn {
        width: 100%;
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

    .pathway-list-item {
        flex-wrap: wrap;
    }
    
    .pathway-list-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
    }
    
    .pathway-list-actions button {
        flex: 1;
        min-width: 80px;
    }

    .pathways-controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Physical Therapy Section */
.pt-recommendations-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5em;
    color: #667eea;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

.pt-recommendations-list {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.pt-recommendation-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.pt-recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d0d7de;
}

.pt-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pt-recommendation-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.pt-recommendation-actions {
    display: flex;
    gap: 8px;
}

.pt-recommendation-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    border: 1px solid #e9ecef;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 1.5em;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2c3e50;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #f8f9fa;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
