.attendance-generator {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.attendance-form {
    margin-bottom: 2rem;
}

.attendance-results {
    margin-top: 2rem;
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.attendance-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

/* Table Styles */
.attendance-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: white;
    border: 1px solid #e5e7eb;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.attendance-table-head {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.attendance-th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: relative;
}

.attendance-th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #e2e8f0;
}

.attendance-th-center {
    text-align: center;
}

.attendance-table-body {
    background: white;
}

.attendance-row {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.attendance-row:hover {
    background: #f8fafc;
    transform: translateX(2px);
    box-shadow: -4px 0 0 #3b82f6;
}

.attendance-row-vacation {
    background: linear-gradient(90deg, #fed7d7 0%, #ffffff 100%);
    border-left: 4px solid #e53e3e;
}

.attendance-row-vacation:hover {
    background: linear-gradient(90deg, #feb2b2 0%, #fed7d7 100%);
    box-shadow: -4px 0 0 #c53030;
}

.attendance-row-study {
    background: linear-gradient(90deg, #bee3f8 0%, #ffffff 100%);
    border-left: 4px solid #3182ce;
}

.attendance-row-study:hover {
    background: linear-gradient(90deg, #90cdf4 0%, #bee3f8 100%);
    box-shadow: -4px 0 0 #2b6cb0;
}

.attendance-row-holiday {
    background: linear-gradient(90deg, #faf089 0%, #ffffff 100%);
    border-left: 4px solid #d69e2e;
}

.attendance-row-holiday:hover {
    background: linear-gradient(90deg, #f6e05e 0%, #faf089 100%);
    box-shadow: -4px 0 0 #b7791f;
}

.attendance-td {
    padding: 1rem 0.75rem;
    color: #374151;
    vertical-align: middle;
    position: relative;
}

.attendance-td-center {
    text-align: center;
}

.attendance-td-date {
    font-weight: 500;
    color: #1f2937;
}

.attendance-date-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attendance-date {
    font-weight: 600;
}

.attendance-td-day {
    color: #6b7280;
    font-size: 0.8rem;
}

.attendance-td-bold {
    font-weight: 600;
}

.attendance-td-worked {
    color: #059669;
    font-weight: 600;
}

.attendance-td-cancelled {
    color: #dc2626;
    font-weight: 500;
}

.attendance-td-overtime {
    color: #d97706;
    font-weight: 500;
}

.attendance-td-classes {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
    font-size: 0.8rem;
}

.attendance-td-time {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #374151;
}

/* Badges */
.attendance-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.attendance-badge-dovolena {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.attendance-badge-samostudium {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

.attendance-badge-holiday {
    background: #faf089;
    color: #744210;
    border: 1px solid #f6e05e;
}

/* Legend */
.attendance-legend {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 12px;
    border: 1px solid #bfdbfe;
}

.attendance-legend-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.attendance-legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.attendance-legend-list li {
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.attendance-legend-list strong {
    color: #1e3a8a;
}

.attendance-legend-colors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.attendance-color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

.attendance-color-vacation {
    background: #e53e3e;
}

.attendance-color-study {
    background: #3182ce;
}

.attendance-color-holiday {
    background: #d69e2e;
}

/* Statistics Cards */
.attendance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.attendance-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.attendance-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.attendance-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.attendance-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.attendance-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.attendance-stat-value-actual {
    color: #3b82f6;
}

.attendance-stat-value-worked {
    color: #059669;
}

.attendance-stat-value-cancelled {
    color: #dc2626;
}

.attendance-stat-value-overtime {
    color: #d97706;
}

.attendance-stat-unit {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Rules Section */
.attendance-rules {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.attendance-rules-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.attendance-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.attendance-rule {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.attendance-rule-title {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.attendance-rule-desc {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .attendance-th,
    .attendance-td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }

    .attendance-stats {
        grid-template-columns: 1fr;
    }

    .attendance-rules-grid {
        grid-template-columns: 1fr;
    }

    .attendance-legend-colors {
        flex-direction: column;
        align-items: flex-start;
    }

    .attendance-date-content {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* Light mode optimizations */
.attendance-generator {
    background: #fafbfc;
    min-height: 100vh;
    padding: 1rem;
}

.attendance-title {
    color: #2d3748;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.attendance-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.attendance-table-head {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #cbd5e0;
}

.attendance-legend {
    background: linear-gradient(135deg, #f0f4f8 0%, #e6fffa 100%);
    border: 1px solid #bee3f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.attendance-legend-title {
    color: #2b6cb0;
}

.attendance-legend-list li {
    color: #2c5282;
}

.attendance-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.attendance-rules {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #cbd5e0;
}

/* Skryje overview (např. "Showing 1 to 2 of 2 results") */
.fi-pagination-overview{
    display: none !important;
}

/* Skryje text "Per page" před selectem */
.fi-input-wrp-prefix{
    display: none !important;
}
