/* ========================================
   Safety Plan Section Styling
   ======================================== */

.safety-plan-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Safety Document Card */
.safety-document-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.safety-document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.safety-document-card .document-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.safety-document-card .document-icon.safety-icon {
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.9;
}

.safety-document-card .document-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.safety-document-card .document-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.safety-document-card .document-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.safety-document-card .btn-download,
.safety-document-card .btn-view {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.safety-document-card .btn-download:hover,
.safety-document-card .btn-view:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Safety Information Grid */
.safety-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.safety-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.safety-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.safety-card-icon {
    font-size: 2rem;
    color: #28a745;
}

.safety-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.safety-card-content {
    color: #5a6c7d;
}

/* Emergency Contacts Card */
.emergency-contacts .safety-card-icon {
    color: #dc3545;
}

.emergency-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.emergency-contact:hover {
    background: #e9ecef;
}

.contact-type {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.contact-type i {
    font-size: 1.2rem;
    color: #28a745;
}

.btn-emergency {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-emergency:hover {
    background: #c82333;
    color: white;
    transform: translateY(-2px);
}

.btn-event-contact {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-event-contact:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* Medical Assistance Card */
.medical-assistance .safety-card-icon {
    color: #fd7e14;
}

.medical-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.medical-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.medical-item:hover {
    background: #e9ecef;
}

.medical-item i {
    color: #28a745;
    font-size: 1.2rem;
}

.medical-item span {
    color: #2c3e50;
    font-weight: 500;
}

/* Evacuation Procedures Card */
.evacuation-procedures .safety-card-icon {
    color: #ffc107;
}

.evacuation-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.evacuation-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.evacuation-step:hover {
    background: #e9ecef;
}

.step-number {
    background: #ffc107;
    color: #212529;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #2c3e50;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.step-content p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.5;
}

/* Safety Equipment Card */
.safety-equipment .safety-card-icon {
    color: #6f42c1;
}

.equipment-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    background: #e9ecef;
}

.equipment-item i {
    color: #6f42c1;
    font-size: 1.2rem;
}

.equipment-item span {
    color: #2c3e50;
    font-weight: 500;
}

/* Safety Notice */
.safety-notice {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.safety-notice .notice-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.safety-notice .notice-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.safety-notice .notice-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.safety-notice .notice-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .safety-plan-container {
        padding: 0 15px;
    }
    
    .safety-document-card {
        padding: 20px;
    }
    
    .safety-document-card .document-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .safety-document-card .document-actions {
        justify-content: center;
    }
    
    .safety-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .safety-card {
        padding: 20px;
    }
    
    .safety-card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .emergency-contact {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .evacuation-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .safety-notice .notice-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .safety-card-title {
        font-size: 1.1rem;
    }
    
    .safety-document-card .document-actions {
        flex-direction: column;
    }
    
    .safety-document-card .btn-download,
    .safety-document-card .btn-view {
        width: 100%;
        justify-content: center;
    }
    
    .emergency-contact {
        padding: 12px;
    }
    
    .medical-item,
    .equipment-item {
        padding: 10px;
    }
    
    .evacuation-step {
        padding: 12px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .safety-plan-container {
        max-width: none;
        margin: 0;
    }
    
    .safety-document-card {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 2px solid #28a745 !important;
    }
    
    .safety-document-card .document-info h3,
    .safety-document-card .document-info p {
        color: black !important;
    }
    
    .safety-document-card .document-actions {
        display: none !important;
    }
    
    .safety-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .safety-notice {
        background: white !important;
        color: black !important;
        border: 2px solid #dc3545 !important;
    }
    
    .safety-notice .notice-title,
    .safety-notice .notice-description {
        color: black !important;
    }
}

/* ========================================
   Modular Safety Plan Enhancements
   ======================================== */

/* Dynamic section styling */
.safety-content {
    line-height: 1.6;
}

.safety-content p {
    margin-bottom: 15px;
}

.safety-content ul, .safety-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.safety-content li {
    margin-bottom: 8px;
}

/* Emergency contacts wrapper for modular system */
.emergency-contacts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emergency-contacts-wrapper > p {
    margin-bottom: 20px;
    color: #6c757d;
}

/* Generic contact styling for any contact type */
.emergency-contact .contact-type small {
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Additional button styles for different contact types */
.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* Responsive improvements for modular content */
@media (max-width: 768px) {
    .safety-content {
        font-size: 14px;
    }
    
    .emergency-contacts-wrapper > p {
        font-size: 14px;
    }
} 