/* Patient List Styles */

body {
    background: #E8DDD3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
    color: #1a1a2e;
    margin: 0;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header Card */
.header-card {
    background: #16213e;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-card h1 {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.75rem;
    font-weight: 600;
    flex: 1;
}

.header-card img {
    height: 48px;
    width: auto;
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
}

.patient-search-input {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1a1a2e;
    box-sizing: border-box;
}

.patient-search-input:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.patient-search-input::placeholder {
    color: #718096;
}

/* Patient List Container */
.patient-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patient-list-container.hidden {
    display: none;
}

/* Patient Card */
.patient-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.patient-card:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.patient-card:active {
    background: #edf2f7;
    transform: scale(0.99);
}

/* Patient Name */
.patient-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #16213e;
    margin: 0;
}

/* Patient Details */
.patient-details {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

/* Wound Count Badge */
.wound-count {
    background: #e6f3ff;
    color: #4a90d9;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Last Visit */
.last-visit {
    color: #718096;
}

/* Empty State */
.empty-state {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px 24px;
    text-align: center;
    color: #718096;
}

.empty-state.hidden {
    display: none;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .header-card {
        padding: 16px 20px;
    }

    .header-card h1 {
        font-size: 1.5rem;
    }

    .header-card img {
        height: 40px;
    }

    .patient-card {
        padding: 14px;
    }

    .patient-name {
        font-size: 1rem;
    }

    .patient-details {
        font-size: 0.85rem;
    }
}

/* Touch Target Enhancement for Tablets */
@media (hover: none) and (pointer: coarse) {
    .patient-card {
        min-height: 70px;
        padding: 18px;
    }

    .patient-search-input {
        min-height: 48px;
        font-size: 18px;
    }
}
