/* =================================
   Notification Styles
   ================================= */

/* Modal Important Notice */
#modalImportant {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

#modalImportant .modal-dialog {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
}

#modalImportant .modal-content {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
}

#modalImportant .modal-header {
    border-bottom: 1px solid #444;
    padding: 1rem;
}

#modalImportant .modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

#modalImportant .btn-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

#modalImportant .modal-body {
    padding: 1rem;
}

#modalImportant .modal-footer {
    border-top: 1px solid #444;
    padding: 1rem;
    text-align: right;
}

#modalImportant .btn-primary {
    background-color: #f0b90b;
    border-color: #f0b90b;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

#modalImportant .btn-primary:hover {
    background-color: #ffd700;
}

/* Light theme for modal */
body.light-theme #modalImportant .modal-content {
    background-color: #fff;
    color: #333;
    border-color: #ddd;
}

body.light-theme #modalImportant .modal-header,
body.light-theme #modalImportant .modal-footer {
    border-color: #ddd;
}

body.light-theme #modalImportant .btn-close {
    color: #333;
}

/* Notification Popups */
.bsvalert {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Losscut Notification Colors */
.bsvalert-type2.bsvalert-pink {
    background-color: #ff4757;
    border: 2px solid #ff3838;
    color: #fff;
}

.bsvalert-type2.bsvalert-green {
    background-color: #2ed573;
    border: 2px solid #20bf6b;
    color: #fff;
}

.bsvalert-type2.bsvalert-violet {
    background-color: #a55eea;
    border: 2px solid #8854d0;
    color: #fff;
}

/* Order Notification Colors */
.bsvalert-type1.bsvalert-pink {
    background-color: #ff6b9d;
    border: 2px solid #ee5a6f;
    color: #fff;
}

.bsvalert-type1.bsvalert-green {
    background-color: #26de81;
    border: 2px solid #20bf6b;
    color: #fff;
}

/* Notification Table Styles */
.bsvalert table {
    margin: 0;
    width: 100%;
}

.bsvalert table td {
    padding: 4px 8px;
    border: none;
    color: inherit;
    font-size: 0.9rem;
}

.bsvalert table td:first-child {
    font-weight: 600;
    opacity: 0.8;
    width: 40%;
}

.bsvalert table td:last-child {
    text-align: right;
}

/* Card styles for notifications */
.bsvalert .card-body {
    padding: 1rem;
}

.bsvalert .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.bsvalert .card-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: inherit;
}

/* Responsive styles */
@media (max-width: 768px) {
    #popLosscutNoti,
    #popOrderNoti {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
    }
    
    #popLosscutNoti .card,
    #popOrderNoti .card {
        width: 100% !important;
    }
    
    #modalImportant .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }
}

/* Alarm badge styles */
.alarm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background-color: #ff4757;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
    text-align: center;
    line-height: 1;
    padding: 1px 4px;
    position: relative;
}

.hide-badge {
    display: none !important;
}

/* Light theme alarm badge */
body.light-theme .alarm-badge {
    background-color: #ff6b35;
    color: #fff;
}

/* Sound element */
#sound {
    position: absolute;
    top: -1000px;
    left: -1000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
