* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2196F3;
    --secondary: #4CAF50;
    --accent: #9C27B0;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #95a5a6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --sidebar-width: 350px;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100vh;
    gap: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
}

.role-selector select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--gray);
    background: white;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
}

.main-content {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.ai-assistant {
    flex: 0 0 var(--sidebar-width);
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.workflow-container {
    flex: 1;
    background: var(--card-bg);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 0;
}

.workflow-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: calc(100% - 80px);
    overflow-y: auto;
    gap: 20px;
}

.patient-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.assistant-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-avatar i {
    font-size: 2rem;
    color: white;
}

.assistant-info h2 {
    font-size: 1.4rem;
    color: var(--dark);
}

.assistant-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.urgent-cases {
    margin-bottom: 25px;
}

.urgent-cases h4 {
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-list {
    list-style: none;
}

.case-item {
    padding: 10px 15px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-item:hover {
    background: rgba(33, 150, 243, 0.15);
    transform: translateX(5px);
}

.case-item i {
    color: var(--primary);
}

.work-entries {
    margin-top: 10px;
}

.work-entries h4 {
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 5px;
}

.entry-card {
    background: var(--light);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.entry-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.entry-card h5 {
    color: var(--dark);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    width: 100%;
}

.entry-card:last-child {
    grid-column: 2;
}

.welcome-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 40px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(156, 39, 176, 0.05));
    overflow-y: auto;
}

.welcome-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.welcome-icon i {
    font-size: 4rem;
    color: white;
}

.welcome-message h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-message p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.highlight {
    background: linear-gradient(120deg, rgba(33, 150, 243, 0.2), transparent);
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.workflow-view {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.workflow-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    z-index: 2;
}

.workflow-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.workflow-title h2 {
    color: var(--dark);
    font-size: 1.6rem;
    margin: 0;
}

.workflow-title p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.patient-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.patient-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.patient-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.patient-card.urgent {
    border-left: 4px solid var(--primary);
}

.patient-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.patient-info {
    flex: 1;
}

.patient-info h3 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.patient-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.urgent-tag {
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.medical-guidance {
    background: rgba(33, 150, 243, 0.08);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.guidance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.guidance-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.guidance-header h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin: 0;
}

.guidance-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guidance-notes {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    flex: 1;
}

.guidance-notes h4 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.guidance-notes ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.guidance-notes li {
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.guidance-notes li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 3px;
}

.list-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
}

.patient-search-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.patient-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.treatment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .ai-assistant {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        min-width: auto;
    }

    .workflow-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .workflow-title {
        width: 100%;
        text-align: center;
    }

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

    .patient-avatar {
        margin: 0 auto;
    }

    .patient-info {
        width: 100%;
        text-align: center;
    }

    .urgent-tag {
        justify-content: center;
    }

    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .entry-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }
}

.step-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar .progress {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 20%;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    text-align: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.2);
}

.step.completed .step-number {
    background: var(--secondary);
    color: white;
}

.step span {
    font-size: 0.9rem;
    color: var(--gray);
}

.step.active span {
    color: var(--primary);
    font-weight: 500;
}

.ai-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.ai-message i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 3px;
}

.message-content p {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.5;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-btn.prev {
    background: var(--light);
    color: var(--dark);
}

.nav-btn.next {
    background: var(--primary);
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.care-plan-form {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.care-item-card {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.care-item-card input[type="checkbox"] {
    display: none;
}

.care-item-card input[type="checkbox"]:checked + .card-content {
    border-color: var(--primary);
    background: rgba(33, 150, 243, 0.05);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-content i {
    font-size: 1.5rem;
    color: var(--primary);
}

.card-content span {
    font-weight: 500;
    color: var(--dark);
}

.card-content small {
    color: var(--gray);
    font-size: 0.8rem;
}

.medication-schedule {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.med-time-group {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
}

.time-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 10px;
}

.med-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.med-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.med-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.med-info {
    flex: 1;
}

.med-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.med-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.med-confirm {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.med-confirm input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.plan-summary {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.plan-summary h4 {
    color: var(--dark);
    margin-bottom: 15px;
}

.summary-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-section h5 {
    color: var(--dark);
    margin-bottom: 10px;
}

.summary-section ul {
    list-style: none;
    padding-left: 20px;
}

.summary-section li {
    color: var(--gray);
    margin-bottom: 5px;
    position: relative;
}

.summary-section li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: -15px;
}

.notes-section {
    margin-top: 20px;
}

.notes-section h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.care-plan-notes {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    resize: vertical;
    font-size: 0.9rem;
    color: var(--dark);
}

@media (max-width: 768px) {
    .step span {
        display: none;
    }

    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2196F3;
    --secondary: #4CAF50;
    --accent: #9C27B0;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #95a5a6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --sidebar-width: 350px;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100vh;
    gap: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
}

.role-selector select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--gray);
    background: white;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
}

.main-content {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.ai-assistant {
    flex: 0 0 var(--sidebar-width);
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.workflow-container {
    flex: 1;
    background: var(--card-bg);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 0;
}

.workflow-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: calc(100% - 80px);
    overflow-y: auto;
    gap: 20px;
}

.patient-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.assistant-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-avatar i {
    font-size: 2rem;
    color: white;
}

.assistant-info h2 {
    font-size: 1.4rem;
    color: var(--dark);
}

.assistant-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.urgent-cases {
    margin-bottom: 25px;
}

.urgent-cases h4 {
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-list {
    list-style: none;
}

.case-item {
    padding: 10px 15px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-item:hover {
    background: rgba(33, 150, 243, 0.15);
    transform: translateX(5px);
}

.case-item i {
    color: var(--primary);
}

.work-entries {
    margin-top: 10px;
}

.work-entries h4 {
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 5px;
}

.entry-card {
    background: var(--light);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.entry-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.entry-card h5 {
    color: var(--dark);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    width: 100%;
}

.entry-card:last-child {
    grid-column: 2;
}

.welcome-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 40px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(156, 39, 176, 0.05));
    overflow-y: auto;
}

.welcome-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.welcome-icon i {
    font-size: 4rem;
    color: white;
}

.welcome-message h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-message p {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.highlight {
    background: linear-gradient(120deg, rgba(33, 150, 243, 0.2), transparent);
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.workflow-view {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.workflow-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    z-index: 2;
}

.workflow-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.workflow-title h2 {
    color: var(--dark);
    font-size: 1.6rem;
    margin: 0;
}

.workflow-title p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.patient-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.patient-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.patient-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.patient-card.urgent {
    border-left: 4px solid var(--primary);
}

.patient-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.patient-info {
    flex: 1;
}

.patient-info h3 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.patient-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.urgent-tag {
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.medical-guidance {
    background: rgba(33, 150, 243, 0.08);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.guidance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.guidance-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.guidance-header h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin: 0;
}

.guidance-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guidance-notes {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    flex: 1;
}

.guidance-notes h4 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.guidance-notes ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.guidance-notes li {
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.guidance-notes li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 3px;
}

.list-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
}

.patient-search-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.patient-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.treatment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.step-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar .progress {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 20%;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    text-align: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.2);
}

.step.completed .step-number {
    background: var(--secondary);
    color: white;
}

.step span {
    font-size: 0.9rem;
    color: var(--gray);
}

.step.active span {
    color: var(--primary);
    font-weight: 500;
}

.ai-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.ai-message i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 3px;
}

.message-content p {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.5;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-btn.prev {
    background: var(--light);
    color: var(--dark);
}

.nav-btn.next {
    background: var(--primary);
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.care-plan-form {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.care-item-card {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.care-item-card input[type="checkbox"] {
    display: none;
}

.care-item-card input[type="checkbox"]:checked + .card-content {
    border-color: var(--primary);
    background: rgba(33, 150, 243, 0.05);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-content i {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.text-content {
    flex: 1;
    min-width: 0;
}

.text-content span {
    display: block;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-content small {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.medication-schedule {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.med-time-group {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
}

.time-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 10px;
}

.med-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.med-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.med-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.med-info {
    flex: 1;
}

.med-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.med-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.med-confirm {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.med-confirm input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.plan-summary {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.plan-summary h4 {
    color: var(--dark);
    margin-bottom: 15px;
}

.summary-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-section h5 {
    color: var(--dark);
    margin-bottom: 10px;
}

.summary-section ul {
    list-style: none;
    padding-left: 20px;
}

.summary-section li {
    color: var(--gray);
    margin-bottom: 5px;
    position: relative;
}

.summary-section li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: -15px;
}

.notes-section {
    margin-top: 20px;
}

.notes-section h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.care-plan-notes {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    resize: vertical;
    font-size: 0.9rem;
    color: var(--dark);
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .ai-assistant {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        min-width: auto;
    }

    .workflow-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .workflow-title {
        width: 100%;
        text-align: center;
    }

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

    .patient-avatar {
        margin: 0 auto;
    }

    .patient-info {
        width: 100%;
        text-align: center;
    }

    .urgent-tag {
        justify-content: center;
    }

    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .entry-card:last-child {
        grid-column: auto;
    }

    .step span {
        display: none;
    }

    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }
} 