/* Alarms Module Styles */

/* Container */
.alarms-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.alarms-header {
    background-color: #D12D2C;
    color: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px 8px 0 0;
}

.alarms-header h1,
.alarms-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header alignment classes */
.alarms-header-left {
    justify-content: flex-start;
}

.alarms-header-center {
    justify-content: center;
}

.alarms-header-right {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.alarms-header svg {
    flex-shrink: 0;
}

/* Table */
.alarms-table {
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Table Rows */
.alarms-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.alarms-row:last-child {
    border-bottom: none;
}

/* Location Column */
.alarms-location {
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Problem Column */
.alarms-problem {
    color: #333333;
    text-align: center;
    font-weight: 400;
}

/* Time Column */
.alarms-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.time-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
}

.clock-icon {
    width: 16px;
    height: 16px;
}

.time-value {
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alarms-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .alarms-time {
        align-items: flex-start;
    }
    
    .alarms-problem {
        text-align: left;
    }
    
    .alarms-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .alarms-header h1 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .alarms-container {
        margin: 0 -15px;
    }
    
    .alarms-row {
        padding: 12px;
        gap: 12px;
    }
    
    .alarms-header {
        padding: 12px;
    }
    
    .alarms-header h1 {
        font-size: 15px;
    }
}

/* Legacy Table Styles for Backward Compatibility */
.alarms-table.legacy {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.alarms-table.legacy thead th {
    background-color: #D12D2C;
    color: #ffffff;
    padding: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
}

.alarms-table.legacy thead th h1,
.alarms-table.legacy thead th h2 {
    margin: 0;
    font-weight: 600;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alarms-table.legacy tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.alarms-table.legacy tbody tr:last-child {
    border-bottom: none;
}

.alarms-table.legacy td {
    padding: 20px;
    vertical-align: top;
}

.alarms-table.legacy .place {
    font-weight: 500;
    color: #333333;
    width: 35%;
}

.alarms-table.legacy .msg {
    text-align: center;
    color: #333333;
    width: 35%;
}

.alarms-table.legacy .time-col {
    text-align: right;
    width: 30%;
}

.alarms-table.legacy .part {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.alarms-table.legacy .part:last-child {
    margin-bottom: 0;
}

.alarms-table.legacy .time {
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

.alarms-table.legacy .clock {
    width: 16px;
    height: 16px;
}

/* Animation for legacy compatibility */
@-webkit-keyframes color-change {
    0% {
        color: #ffffff;
    }
    50% {
        color: #eed202;
    }
    100% {
        color: #ffffff;
    }
}

@-moz-keyframes color-change {
    0% {
        color: #ffffff;
    }
    50% {
        color: #eed202;
    }
    100% {
        color: #ffffff;
    }
}

@-ms-keyframes color-change {
    0% {
        color: #ffffff;
    }
    50% {
        color: #eed202;
    }
    100% {
        color: #ffffff;
    }
}

@-o-keyframes color-change {
    0% {
        color: #ffffff;
    }
    50% {
        color: #eed202;
    }
    100% {
        color: #ffffff;
    }
}

@keyframes color-change {
    0% {
        color: #ffffff;
    }
    50% {
        color: #eed202;
    }
    100% {
        color: #ffffff;
    }
}
