/* ===== EMERGENCY PANEL STYLES - SIMPLIFIED ===== */

/* Emergency Panel Container */
.emergency-panel {
    position: fixed;
    bottom: 210px;
    right: 30px;
    width: 300px;
    background: var(--deep-navy-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--bright-red);
    overflow: hidden;
    display: none;
    z-index: 9998;
    animation: slideUp 0.3s ease;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Emergency Header */
.emergency-header {
    background: var(--bright-red);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--cream);
}

.emergency-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-header h4 i {
    font-size: 18px;
}

.close-btn {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 18px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Emergency Body */
.emergency-body {
    padding: 20px;
}

/* Warden Contact Card */
.emergency-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--deep-navy);
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    border: 2px solid var(--bright-red);
    transition: var(--transition);
}

.emergency-item:hover {
    transform: translateX(5px);
    border-color: var(--cream);
    box-shadow: var(--shadow-md);
}

.emergency-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 72, 51, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-icon i {
    font-size: 24px;
    color: var(--bright-red);
}

.emergency-info {
    flex: 1;
}

.emergency-info strong {
    display: block;
    color: var(--cream);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.emergency-info p {
    font-size: 12px;
    color: var(--cream);
    opacity: 0.8;
    margin: 0;
}

.call-btn {
    padding: 8px 16px;
    background: var(--bright-red);
    color: var(--cream);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.call-btn:hover {
    background: var(--rust-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.call-btn i {
    font-size: 12px;
}

/* Hospital Link */
.hospital-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--deep-navy);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--mint-green);
}

.hospital-link:hover {
    background: var(--rust-red);
    transform: translateX(5px);
    border-color: var(--cream);
    box-shadow: var(--shadow-md);
}

.hospital-link i:first-child {
    font-size: 24px;
    color: var(--mint-green);
    width: 30px;
}

.hospital-link div {
    flex: 1;
}

.hospital-link span {
    color: var(--cream);
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.hospital-link small {
    color: var(--cream);
    opacity: 0.7;
    font-size: 11px;
    display: block;
}

.hospital-link i:last-child {
    color: var(--mint-green);
    font-size: 14px;
    transition: var(--transition);
}

.hospital-link:hover i:last-child {
    transform: translateX(5px);
    color: var(--cream);
}

/* Action Buttons (Chatbot & Emergency) */
.action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    color: var(--cream);
}

.chatbot-btn {
    background: var(--rust-red);
    animation: gentlePulse 2.5s infinite;
}

.emergency-btn {
    background: var(--bright-red);
    animation: urgentPulse 1.5s infinite;
}

@keyframes gentlePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(135, 79, 65, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(135, 79, 65, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(135, 79, 65, 0); }
}

@keyframes urgentPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 72, 51, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(230, 72, 51, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 72, 51, 0); }
}

.action-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .emergency-panel {
        width: 280px;
        right: 20px;
        bottom: 200px;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .emergency-panel {
        width: 260px;
        right: 15px;
        bottom: 180px;
    }
    
    .emergency-header h4 {
        font-size: 14px;
    }
    
    .emergency-item {
        padding: 12px;
        gap: 10px;
    }
    
    .emergency-icon {
        width: 40px;
        height: 40px;
    }
    
    .emergency-icon i {
        font-size: 18px;
    }
    
    .emergency-info strong {
        font-size: 14px;
    }
    
    .call-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .hospital-link {
        padding: 12px;
        gap: 10px;
    }
    
    .hospital-link i:first-child {
        font-size: 20px;
    }
    
    .hospital-link span {
        font-size: 13px;
    }
}