/* Edu3D-Licznik v2.4 Plugin Styles */
.edu3d-counters {
    font-family: 'Roboto', sans-serif;
    color: #2D2D2D;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Counter cards layout */
.edu3d-counters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .edu3d-counters {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

/* Individual counter cards */
.edu3d-counter-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-top: 4px solid #00ADE5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

@media (min-width: 768px) {
    .edu3d-counter-card {
        padding: 40px;
        min-height: 500px;
    }
}

.edu3d-counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.classes-card {
    border-top-color: #25337E;
}

/* Card titles - NO VERSION NUMBERS */
.counter-title {
    font-family: 'Roboto Slab', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #25337E;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Counter content */
.counter-content {
    text-align: center;
}

.counter-label {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 500;
    color: #2D2D2D;
    margin-bottom: 20px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .school-year-card .counter-label {
        font-size: 0.85rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Counter display */
.counter-display {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 20px);
    margin: 25px 0;
}

.counter-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(60px, 15vw, 80px);
}

.counter-value {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    color: #00ADE5;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 173, 229, 0.3);
}

.classes-card .counter-value {
    color: #25337E;
    text-shadow: 0 2px 4px rgba(37, 51, 126, 0.3);
}

.counter-unit {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: 500;
    color: #2D2D2D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.counter-separator {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #FD8F02;
    align-self: flex-start;
    margin-top: clamp(10px, 2vw, 15px);
}

/* Counter information - UPDATED: Both labels same color */
.counter-info {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #2D2D2D;
    margin: 10px 0;
    font-weight: 500;
}

/* UPDATED: Both info labels same color (#25337E) */
.info-label {
    color: #25337E;
    font-weight: 600;
}

/* Configuration inputs */
.counter-config {
    text-align: left;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #25337E;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #00ADE5;
    box-shadow: 0 0 0 3px rgba(0, 173, 229, 0.1);
}

.input-group input:invalid {
    border-color: #DD0101;
}

/* Class note */
.class-note {
    background: #f8f9fa;
    border-left: 4px solid #FFC93F;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #2D2D2D;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Button styling */
.counter-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 110px;
    max-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

@media (max-width: 767px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-width: auto;
        max-width: none;
    }
}

.btn:focus {
    outline: 3px solid rgba(0, 173, 229, 0.5);
    outline-offset: 2px;
}

.btn-primary {
    background: #00ADE5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #00A6DF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 173, 229, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: auto;
    max-width: auto;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* UPDATED: Monthly breakdown styling (renamed from excluded-days) */
.monthly-breakdown-container {
    margin-top: 20px;
    text-align: center;
}

.monthly-breakdown-list {
    margin-top: 15px;
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #6c757d;
}

.monthly-breakdown-header {
    font-weight: 600;
    color: #25337E;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1rem;
}

.monthly-breakdown-items {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.monthly-breakdown-items li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    line-height: 1.4;
}

.monthly-breakdown-items li:last-child {
    border-bottom: none;
}

.monthly-breakdown-items li:hover {
    background: rgba(0, 173, 229, 0.05);
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 4px;
}

.monthly-total {
    font-weight: 600;
    color: #25337E;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(37, 51, 126, 0.1);
    border-radius: 6px;
}

/* Error messages */
.error-message {
    background: #fff2f2;
    border: 1px solid #DD0101;
    border-radius: 6px;
    padding: 12px 16px;
    color: #DD0101;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 15px;
}

/* Summer message */
.summer-message {
    background: linear-gradient(135deg, #FFC93F, #EDC806);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #2D2D2D;
    box-shadow: 0 4px 15px rgba(255, 201, 63, 0.3);
}

.summer-message p {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* WordPress theme compatibility */
.edu3d-counters * {
    box-sizing: border-box;
}

.edu3d-counters h2 {
    font-family: 'Roboto Slab', serif !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .edu3d-counter-card {
        border-width: 2px;
        border-style: solid;
        border-color: #2D2D2D;
    }

    .counter-value {
        text-shadow: none;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .edu3d-counter-card,
    .btn {
        transition: none;
    }

    .edu3d-counter-card:hover {
        transform: none;
    }

    .btn:hover:not(:disabled) {
        transform: none;
    }
}

/* Print styles */
@media print {
    .edu3d-counters {
        box-shadow: none;
        background: white;
    }

    .edu3d-counter-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #2D2D2D;
    }

    .btn {
        display: none;
    }

    .monthly-breakdown-list {
        background: white;
        border: 1px solid #2D2D2D;
    }
}
