/* Vaccine application styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #1976d2, #2c3e50);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Tab navigation */
.tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-button.active {
    background: #1976d2;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #e9ecef;
}

/* Tab content */
.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

/* Patient info section */
.patient-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.patient-info h2 {
    color: #1976d2;
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Vaccinations section */
.vaccinations-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .vaccinations-layout {
        grid-template-columns: 1fr;
    }
}

.vaccine-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.category-title {
    color: #1976d2;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #1976d2;
}

.vaccine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.vaccine-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vaccine-name {
    font-weight: 500;
}

.vaccine-date {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Messages section */
.messages-section {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message-area {
    background: white;
    padding: 15px;
    border-radius: 4px;
    min-height: 150px;
    white-space: pre-line;
}

/* Quick summary */
.quick-summary {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.quick-stat {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.stat-icon {
    font-size: 1.5em;
    display: block;
    margin-bottom: 5px;
}

/* Actions section */
.actions-section {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #1976d2;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-accent {
    background: #4caf50;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Status section */
.status-section {
    background: #e1f5fe;
    padding: 20px;
    border-radius: 8px;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #666;
    border-top: 1px solid #eee;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    font-size: 1.5em;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .status-summary {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.3em;
    }
    
    header p {
        font-size: 0.9em;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .vaccinations-layout {
        flex-direction: column;
    }
    
    .vaccine-grid {
        gap: 10px;
    }
    
    .checkbox-group {
        flex-direction: column;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1em;
    }
    
    .patient-info, .vaccinations-left, .vaccinations-right {
        padding: 10px;
    }
    
    .vaccine-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vaccine-date {
        width: 100%;
    }
}