/* Base styles */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2c3e50;
    --accent-color: #e67e22;
    --background-color: #f4f4f4;
    --text-color: #333;
    --light-text-color: #666;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

#smooth-scroll {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    scroll-snap-align: start;
    /* position: relative; */
}

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

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

p, li {
    margin-bottom: 1rem;
    font-size: 2rem;
}

li {
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: justify;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Arrow animation */
.arrows {
    width: 60px;
    height: 72px;
    position: absolute;
    left: 50%;
    margin-left: -30px;
    bottom: 20px;
}

.arrows path {
    stroke: var(--primary-color);
    fill: transparent;
    stroke-width: 1px;  
    animation: arrow 2s infinite;
    -webkit-animation: arrow 2s infinite; 
}

@keyframes arrow {
    0% {opacity:0}
    40% {opacity:1}
    80% {opacity:0}
    100% {opacity:0}
}

@-webkit-keyframes arrow { /* Safari and Chrome */
    0% {opacity:0}
    40% {opacity:1}
    80% {opacity:0}
    100% {opacity:0}
}

.arrows path.a1 {
    animation-delay:-1s;
    -webkit-animation-delay:-1s; /* Safari 和 Chrome */
}

.arrows path.a2 {
    animation-delay:-0.5s;
    -webkit-animation-delay:-0.5s; /* Safari 和 Chrome */
}

.arrows path.a3 { 
    animation-delay:0s;
    -webkit-animation-delay:0s; /* Safari and Chrome */
}

/* Section-specific styles */
.stats, .premonition, .elite, .co-counsel {
    max-width: 900px;
    margin: 0 auto;
}

.stats-image, .premonition-gif {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form styles */
#lawyerForm {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

input, button, select {
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.2);
}

button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

#responseMessage {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-align: center;
    display: none;
}

/* Footer styles */
.activity-div {
    background-color: #fff;
    padding: 2rem;
    /* text-align: center; */
    margin: 0 auto;
    max-width: 50%;
    max-height: 90vh;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.activity-div img {
    max-width: 100%;
    height: auto;
}

#featured-header {
    position: absolute; /* Changed from absolute to relative */
    z-index: 3; /* Ensure it is above other elements */
    top: 20px;
}

/* Marquee styles */
#actionform {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#actionform h3 {
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    user-select: none;
    margin-bottom: 2rem;
    position: absolute;
    z-index: 1; /* Place marquee behind activity-div */
}

.marquee-inner {
    display: flex;
    animation: marquee 500s linear infinite;
    width: max-content;
}

.media-logo {
    width: auto;
    height: auto;
    opacity: 0.2;
    object-fit: contain;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Changed to -50% for smoother loop */
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .section {
        padding: 2rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    p, li {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    li {
        text-align: justify;
    }

    .activity-div {
        max-width: 95%;
        max-height: 85vh;
        padding: 1rem;
        margin: 10px auto;
    }

    .media-logo {
        /* width: 100px; */
        margin: 0 10px;
    }
}

/* Add these new styles for the wizard */

/* Wizard Steps */
.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 40px 0;
    position: sticky;
    top: 0;
    background: white;
    padding: 20px 0;
    z-index: 3;
    margin: 0 0 20px 0;
}

.progress-bar {
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--background-color);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.step-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.step-description {
    font-size: 12px;
    color: var(--light-text-color);
    text-align: center;
}

/* Case Types Table */
.case-types-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.case-types-table th,
.case-types-table td {
    padding: 15px;
    border: 1px solid var(--background-color);
}

.case-types-table thead th {
    background: var(--background-color);
    color: var(--primary-color);
}

.column-header {
    text-align: center;
}

.header-description {
    font-size: 12px;
    color: var(--light-text-color);
    font-weight: normal;
    margin-top: 5px;
}

.case-type-name {
    font-weight: 500;
    color: var(--text-color);
}

.checkbox-cell {
    text-align: center;
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.custom-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding: 20px 0;
    /* border-top: 1px solid var(--background-color); */
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: white;
    /* padding: 15px 0; */
    margin-top: auto;
    /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); */
}

.wizard-navigation button {
    padding: 10px 20px;
    min-width: 100px;
}

/* Assistant Management */
.assistants-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.assistant-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-info h5 {
    margin: 0;
    color: var(--primary-color);
}

.assistant-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--light-text-color);
}

.assistant-actions {
    display: flex;
    gap: 10px;
}

.assistant-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Counties Grid */
.counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.county-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step-indicators {
        /* flex-direction: column; */
        align-items: center;
        gap: 20px;
    }

    .progress-bar {
        display: none;
    }

    .step {
        width: 100%;
        flex-direction: row;
        gap: 15px;
    }

    .step-circle {
        margin-bottom: 0;
    }

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

    .assistant-card {
        flex-direction: column;
        text-align: center;
    }

    .assistant-actions {
        margin-top: 15px;
    }
}

/* Counties Selection Styling */
.states-counties-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--background-color);
    border-radius: 8px;
    background: white;
    padding: 1px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}

.states-counties-container::-webkit-scrollbar {
    width: 8px;
}

.states-counties-container::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.states-counties-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.state-section {
    margin: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--background-color);
}

.state-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.select-all-counties {
    padding: 5px 10px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-all-counties:hover {
    background: var(--primary-color);
    color: white;
}

.counties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.county-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--background-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.county-checkbox:hover {
    background: #e8e8e8;
}

.county-name {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .states-counties-container {
        max-height: 300px;
    }

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

    .state-section {
        margin: 10px;
        padding: 10px;
    }
}

/* Form Styling */
.form-grid {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid var(--background-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.1);
}

.input-hint {
    font-size: 12px;
    color: var(--light-text-color);
}

.invalid {
    border-color: #dc3545 !important;
}

.invalid + .input-hint {
    color: #dc3545;
}

/* Assistant Form Styling */
.assistant-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--background-color);
}

.add-assistant-btn {
    margin-top: 20px;
    width: 100%;
}

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

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Assistant Card Updates */
.assistant-card {
    padding: 20px;
}

.assistant-info p {
    font-size: 14px;
    margin: 5px 0;
}

.assistant-note {
    font-style: italic;
    color: var(--light-text-color);
}

/* Style for Select All buttons */
.select-all-button {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.select-all-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Update column header to accommodate the button */
.column-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Update activity-div to handle scrolling */
.activity-div {
    scroll-behavior: smooth;
}

/* Improve scrollbar appearance */
.activity-div::-webkit-scrollbar {
    width: 8px;
}

.activity-div::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.activity-div::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* For Firefox */
.activity-div {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}

/* Wizard container improvements */
#wizardSteps {
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    min-height: 0; /* Allow container to shrink */
}

/* Make step indicators sticky */
.step-indicators {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px 0;
    z-index: 3;
    margin: 0 0 20px 0;
}

/* Content area scrolling */
.step-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
    min-height: 0; /* Allow container to shrink */
}

.step-content h4 {
    text-align: center;
}
/* Make navigation sticky at bottom */
.wizard-navigation {
    position: sticky;
    bottom: 0;
    background: white;
    /* padding: 15px 0; */
    margin-top: auto;
    /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); */
}

/* Mobile improvements */
@media (max-width: 768px) {
    .activity-div {
        max-width: 95%;
        max-height: 85vh;
        padding: 1rem;
        margin: 10px auto;
    }

    /* Improve step indicators for mobile */
    .step-indicators {
        padding: 10px 0;
    }

    .step {
        width: auto;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .step-circle {
        width: 40px; /* Smaller circles on mobile */
        height: 40px;
        margin: 0;
        font-size: 16px;
    }

    .step-label {
        font-size: 12px;
        margin: 0;
    }

    .step-description {
        display: none; /* Hide descriptions on mobile to save space */
    }

    /* Adjust content spacing */
    .step-content {
        padding: 0 5px;
    }

    /* Make forms more compact */
    .form-grid {
        gap: 15px;
    }

    .form-group {
        gap: 5px;
    }

    /* Adjust table for mobile */
    .case-types-table {
        font-size: 14px;
    }

    .case-types-table th,
    .case-types-table td {
        padding: 10px 5px;
    }

    /* Make buttons more touchable */
    button {
        min-height: 44px; /* Better touch targets */
        padding: 10px 15px;
    }

    .select-all-button {
        padding: 8px 12px;
        width: 100%;
        margin: 5px 0;
    }
}

/* Intake Options */
.intake-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.intake-button {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.intake-button:hover {
    background: var(--primary-color);
    color: white;
}

.intake-button:hover h4,
.intake-button:hover p {
    color: white;
}

.intake-button h4 {
    margin: 0 0 10px 0;
}

.intake-button p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-color);
}

/* Calendar View */
.calendar-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}

.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.calendar-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--background-color);
}

.week-view {
    overflow-x: auto;
    overflow-y: visible;
    margin: 0 -20px;
    padding: 0 20px;
}

.calendar-actions {
    position: sticky;
    bottom: 0;
    background: white;
    margin: 0 -20px;
    padding: 15px 20px;
    border-top: 1px solid var(--background-color);
}

@media (max-width: 768px) {
    .calendar-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .calendar-header {
        padding-right: 40px; /* Space for close button */
    }
}

.calendar-header-content {
    flex: 1;
}

.timezone-selector {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timezone-selector label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.timezone-select {
    padding: 5px 10px;
    border: 1px solid var(--background-color);
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    color: var(--text-color);
    min-width: 200px;
}

.timezone-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.1);
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-view {
    overflow-x: auto;
}

.calendar-row {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}

.calendar-row.header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.time-cell, .day-cell, .slot-cell {
    padding: 10px;
    text-align: center;
    background: var(--background-color);
    border-radius: 4px;
    min-width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-cell {
    font-weight: bold;
    background: white;
    font-size: 0.9rem;
}

.day-cell {
    font-weight: bold;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: help;
}

.slot-cell {
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-cell:hover {
    background: #e0e0e0;
}

.slot-cell.available {
    background: var(--primary-color);
}

.calendar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--background-color);
}

/* Response Message */
#responseMessage {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .intake-options {
        grid-template-columns: 1fr;
    }

    .calendar-row {
        grid-template-columns: 70px repeat(5, 1fr);
    }

    .week-view {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .time-cell, .day-cell, .slot-cell {
        padding: 8px 5px;
        height: 36px;
        min-width: 40px;
        font-size: 0.85rem;
    }

    .day-cell {
        font-size: 1rem;
    }

    .calendar-header {
        flex-direction: column;
    }
    
    .timezone-selector {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .timezone-select {
        width: 100%;
    }
    
    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

/* Case List Styles */
.case-list {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.case-card {
    padding: 15px;
    background: var(--background-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.case-content {
    flex: 1;
}

.case-card h5 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.case-card p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-color);
}

.case-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accept-case-btn {
    width: 100%;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accept-case-btn:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .case-card {
        margin: 0 -10px;
    }

    .accept-case-btn {
        padding: 12px 15px; /* Larger touch target on mobile */
    }
}

/* Case List Tabs */
.case-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.case-tab {
    padding: 10px 20px;
    background: var(--background-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.case-tab-content {
    display: none;
}

.case-tab-content.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text-color);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.empty-state button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.empty-state button:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .case-tabs {
        gap: 5px;
    }

    .case-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Clio Sync Button */
.clio-sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.clio-sync-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.clio-sync-btn svg {
    width: 20px;
    height: 20px;
}

/* Finish step container */
.finish-step-container {
    text-align: center;
    padding: 20px 0;
}

.finish-step-container h4 {
    margin-bottom: 20px;
}

.finish-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.finish-actions .primary-button {
    min-width: 200px;
}

.clio-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
}

.clio-divider::before,
.clio-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--background-color);
}

.clio-divider span {
    padding: 0 15px;
    color: var(--light-text-color);
    font-size: 0.9rem;
}

/* Not found message container */
.not-found-container {
    text-align: center;
    padding: 20px;
}

.not-found-container p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .clio-sync-btn {
        width: 100%;
        max-width: 300px;
    }

    .finish-actions {
        width: 100%;
        padding: 0 20px;
    }
}
