/* Attendance Register Plugin Styles */

.attendance-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.attendance-form-container p {
    margin-bottom: 18px;
}

.attendance-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.attendance-form-container input[type="text"],
.attendance-form-container input[type="email"],
.attendance-form-container input[type="tel"],
.attendance-form-container select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d6dc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.attendance-form-container input:focus,
.attendance-form-container select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
}

.attendance-form-container input[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

.attendance-form-container input[type="submit"]:hover {
    background-color: #005a87;
}

.iti {
    width: 100%;
}

/* Stats Container */
.attendance-stats-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.stats-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f6f7f7;
    padding-bottom: 20px;
    gap: 20px;
}

.stats-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 26px;
    font-weight: 700;
    flex: 1;
    min-width: 200px;
}

.stats-total-badge {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}

.total-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.total-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.stats-column {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.stats-column h3 {
    font-size: 18px;
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.stats-list li:last-child {
    border-bottom: none;
}

.stats-item-name {
    color: #3c434a;
    font-weight: 500;
}

.stats-item-count {
    font-weight: 700;
    color: #0073aa;
    background: #e7f3ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.no-data {
    color: #8c8f94;
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

#attendance-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

#ar_origin_outros_container {
    margin-top: 15px;
    padding: 15px;
    background-color: #f6f7f7;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .attendance-stats-container {
        padding: 15px;
        margin: 15px;
    }

    .stats-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .stats-header h2 {
        font-size: 22px;
    }

    .stats-total-badge {
        width: 100%;
        box-sizing: border-box;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-column {
        padding: 15px;
    }
}
