/* Alert Modal Styles */
.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 5000;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.alert-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.alert-modal-content {
    background: #f8fafc;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.alert-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
}

.alert-modal-header h2 {
    color: #f1f5f9;
    font-size: 17px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.alert-modal-header .close-modal {
    font-size: 22px;
    cursor: pointer;
    color: #94a3b8 !important;
    transition: color 0.2s;
    line-height: 1;
}

.alert-modal-header .close-modal:hover {
    color: #f1f5f9 !important;
}

.alert-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Alert Boxes Container */
.alert-boxes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

/* Individual Alert Box */
.alert-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 0;
    position: relative;
}

.alert-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.alert-box:active {
    transform: translateY(0);
}

/* Emergency Call Box */
.emergency-call-box {
    border-left: 4px solid #dc2626;
}

.emergency-call-box:hover {
    border-color: #e2e8f0;
    border-left-color: #dc2626;
    background: #fef2f2;
}

/* Tracking Box */
.tracking-box {
    border-left: 4px solid #d97706;
}

.tracking-box:hover {
    border-color: #e2e8f0;
    border-left-color: #d97706;
    background: #fffbeb;
}

/* Silent Alert Box */
.silent-alert-box {
    border-left: 4px solid #7c3aed;
}

.silent-alert-box:hover {
    border-color: #e2e8f0;
    border-left-color: #7c3aed;
    background: #faf5ff;
}

/* Emergency Contacts Box */
.emergency-contacts-box {
    border-left: 4px solid #2563eb;
}

.emergency-contacts-box:hover {
    border-color: #e2e8f0;
    border-left-color: #2563eb;
    background: #eff6ff;
}

/* Alert Box Icon */
.alert-box-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.emergency-call-box .alert-box-icon {
    background: #fef2f2;
    color: #dc2626;
}

.tracking-box .alert-box-icon {
    background: #fffbeb;
    color: #d97706;
}

.silent-alert-box .alert-box-icon {
    background: #faf5ff;
    color: #7c3aed;
}

.emergency-contacts-box .alert-box-icon {
    background: #eff6ff;
    color: #2563eb;
}

.alert-box h3 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    letter-spacing: 0;
}

.alert-box-description {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 14px 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Emergency Number Display */
.emergency-number {
    font-size: 36px;
    font-weight: 700;
    color: #dc2626;
    margin: 12px 0;
    letter-spacing: 6px;
    border: 2px solid #fecaca;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-block;
    background: #fef2f2;
    align-self: center;
}

.alert-box-info {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 0 0;
}

/* Info Lists */
.tracking-info,
.silent-alert-info,
.contacts-info {
    text-align: left;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tracking-info p,
.silent-alert-info p,
.contacts-info p {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-info ul,
.silent-alert-info ul,
.contacts-info ul {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 13px;
    line-height: 1.8;
}

.tracking-info li,
.silent-alert-info li,
.contacts-info li {
    margin-bottom: 4px;
}

/* Confirmation Dialog */
.alert-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.confirmation-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.confirmation-content h3 {
    color: #0f172a;
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.confirmation-content p {
    color: #475569;
    font-size: 14px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm,
.btn-cancel {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-confirm {
    background: #dc2626;
    color: white;
}

.btn-confirm:hover {
    background: #b91c1c;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alert-boxes-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alert-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 10px;
    }

    .alert-modal-header {
        padding: 14px 18px;
    }

    .alert-modal-header h2 {
        font-size: 15px;
    }

    .alert-modal-body {
        padding: 16px;
    }

    .alert-box {
        padding: 18px;
    }

    .alert-box h3 {
        font-size: 15px;
    }

    .emergency-number {
        font-size: 32px;
    }

    .alert-box-icon {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .confirmation-content {
        padding: 24px 18px;
    }

    .confirmation-buttons {
        flex-direction: column;
    }

    .btn-confirm,
    .btn-cancel {
        width: 100%;
    }
}
