/* 
 * Auto Result Manager - Main Styles
 * Designed for GeneratePress + Gutenberg
 */

.arm-container {
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.arm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    border: 1px solid #000;

}

/* Date Header Row */
.arm-table tr.arm-date-row td {
    background: #004d40;
    /* Dark Green */
    color: #ffffff;
    font-weight: 700;
    padding: 12px;
    font-size: 1.1rem;
    border: 1px solid #000;
}

/* Index Headings Row */
.arm-table tr.arm-heading-row td {
    background: #808000;
    /* Olive */
    color: #ffffff;
    font-weight: 600;
    padding: 8px;
    border: 1px solid #000 !important;
}

/* Main Numbers Row */
.arm-table tr.arm-main-row td {
    padding: 15px 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    border: 1px solid #000 !important;
}

/* Single Numbers Row */
.arm-table tr.arm-single-row td {
    background: #e8f5e9;
    /* Light Green */
    padding: 10px 8px;
    font-weight: 600;
    color: #2e7d32;
    border: 1px solid #000 !important;
}


/* History Item Spacing */
.recent-item {
    margin-bottom: 5px !important;
}

.recent-item .arm-table {
    margin-bottom: 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .arm-table tr.arm-date-row td {
        font-size: 0.9rem;
    }

    .arm-table tr.arm-heading-row td,
    .arm-table tr.arm-main-row td,
    .arm-table tr.arm-single-row td {
        padding: 6px 4px;
        font-size: 0.85rem;
    }
}

/* Admin Panel Styling */
.arm-admin-wrap {
    margin: 20px;
    max-width: 1000px;
}

.arm-admin-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin-bottom: 20px;
}

.arm-input-group {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.arm-input-group input {
    width: 100%;
    text-align: center;
    padding: 8px;
    font-weight: bold;
}

.arm-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #004d40;
}

.arm-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.arm-history-table {
    width: 100%;
    margin-top: 20px;
}

.arm-history-table th {
    text-align: left;
    padding: 10px;
    background: #f0f0f1;
}

.arm-history-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Holiday Table Row Styles */
.arm-table tr.arm-holiday-row td.arm-holiday-reason {
    background: #ffebee;
    color: #c62828;
    font-weight: 700;
    padding: 20px 10px;
    font-size: 1.25rem;
    border: 1px solid #000000 !important;
    text-align: center;
}

/* Switch styling in admin panel */
.arm-switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.arm-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-right: 12px;
}
.arm-switch input[type="checkbox"] {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.arm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 28px;
}

.arm-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.arm-switch input[type="checkbox"]:checked+.arm-slider {
    background-color: #2e7d32;
}

.arm-switch input[type="checkbox"]:focus+.arm-slider {
    box-shadow: 0 0 1px #2e7d32;
}

.arm-switch input[type="checkbox"]:checked+.arm-slider:before {
    transform: translateX(22px);
}