/* XEOMIN Calculator Specific Styles */

.alert-info-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
}

.alert-warning-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ff9800;
}

.key-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.key-info-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.key-info-item i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.key-info-item h4 {
    margin: 10px 0 5px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.key-info-item p {
    margin: 0;
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

/* Dose Results */
.dose-results {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

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

.result-header i {
    font-size: 36px;
}

.result-header h3 {
    margin: 0;
    font-size: 24px;
}

.total-dose-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
}

.total-dose-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.total-dose-value {
    font-size: 48px;
    font-weight: 700;
}

.gland-dosing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gland-card {
    background: white;
    color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
}

.parotid-card {
    border-top: 4px solid #4a90e2;
}

.submandibular-card {
    border-top: 4px solid #e74c3c;
}

.gland-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.parotid-card .gland-header i {
    color: #4a90e2;
}

.submandibular-card .gland-header i {
    color: #e74c3c;
}

.gland-header h4 {
    margin: 0;
    font-size: 16px;
}

.dose-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dose-detail:last-child {
    border-bottom: none;
}

.dose-label {
    font-size: 14px;
    color: #666;
}

.dose-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.injection-summary {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.injection-summary p {
    margin: 5px 0;
}

/* Dosing Table */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.dosing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.dosing-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dosing-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.dosing-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.dosing-table tbody tr:hover {
    background: #f8f9fa;
}

.parotid-header {
    background: rgba(74, 144, 226, 0.2);
}

.submandibular-header {
    background: rgba(231, 76, 60, 0.2);
}

.parotid-cell {
    background: rgba(74, 144, 226, 0.05);
}

.submandibular-cell {
    background: rgba(231, 76, 60, 0.05);
}

.total-cell {
    font-weight: 700;
    color: #667eea;
}

.table-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Protocol Steps */
.protocol-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.step-content ul {
    margin: 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #495057;
}

.step-content ul ul {
    margin-top: 8px;
}

/* Safety Information */
.safety-section {
    margin-bottom: 25px;
}

.safety-section:last-child {
    margin-bottom: 0;
}

.safety-section h3 {
    color: #d35400;
    margin-bottom: 12px;
    font-size: 18px;
}

.safety-section ul {
    margin: 0;
    padding-left: 20px;
}

.safety-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Clinical Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.tip-card i {
    font-size: 28px;
    color: #28a745;
    margin-bottom: 10px;
}

.tip-card h4 {
    margin: 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.tip-card p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

/* References */
.references-card {
    background: #f8f9fa;
}

.references-list {
    padding-left: 20px;
    margin: 20px 0;
}

.references-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #495057;
}

.references-list a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.references-list a:hover {
    text-decoration: underline;
}

.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .key-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gland-dosing-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .total-dose-value {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .key-info-grid {
        grid-template-columns: 1fr;
    }
    
    .dosing-table {
        font-size: 12px;
    }
    
    .dosing-table th,
    .dosing-table td {
        padding: 8px 4px;
    }
}
