/* ============================================================================= */
/* UNIFIED CSS - Čisté sjednocené styly pro admin šablony Výtvarky Dochazka */
/* ============================================================================= */

/* Base styles */
body { 
    padding: 1.5em; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

/* Přepsání Pico.css container stylu */
main.container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Reset */
* {
    box-sizing: border-box;
}

/* Admin navigace */
.admin-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.admin-nav li a, .admin-nav li strong {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-nav li a:hover { 
    background: rgba(255, 255, 255, 0.2); 
    color: white; 
}

.admin-nav li strong { 
    background: rgba(255, 255, 255, 0.25); 
    color: white; 
}

.admin-nav .nav-divider { 
    width: 1px; 
    height: 20px; 
    background: rgba(255, 255, 255, 0.3); 
    margin: 0 0.25rem; 
}

/* Nadpisy */
h1 { 
    text-align: center; 
    margin-bottom: 0.5rem; 
}

h2 {
    font-size: 1.2em;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Flash zprávy */
.flash-messages {
    margin-bottom: 1.5rem;
}

.flash {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Formuláře */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 800px; /* Širší pro admin_deti_form */
}

/* Menší formuláře (pokud potřebujeme) */
.form-container.small {
    max-width: 500px;
}

/* Admin docházka lekce specifické styly */
.dochazka-table {
    width: 100%;
    border-collapse: collapse;
}

.dochazka-table th {
    background: #f8f9fa;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.dochazka-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.dochazka-table tr:hover {
    background: #f8f9fa;
}

.dite-info {
    min-width: 200px;
}

.dite-jmeno {
    font-weight: bold;
    font-size: 1.1em;
}

.dite-poznamka {
    font-size: 0.8em;
    color: #666;
}

/* Status radio buttons */
.status-options {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.status-option {
    position: relative;
}

.status-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.status-option label {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.status-option input:checked + label {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.status-P label {
    background: #d4edda;
    color: #155724;
}

.status-P input:checked + label {
    border-color: #155724;
}

.status-I label {
    background: #cce5ff;
    color: #004085;
}

.status-I input:checked + label {
    border-color: #004085;
}

.status-O label {
    background: #e2e3e5;
    color: #383d41;
}

.status-O input:checked + label {
    border-color: #383d41;
}

.status-PO label {
    background: #fff3cd;
    color: #856404;
}

.status-PO input:checked + label {
    border-color: #856404;
}

.status-N label {
    background: #f8d7da;
    color: #721c24;
}

.status-N input:checked + label {
    border-color: #721c24;
}

.status-S label {
    background: #e2d5f1;
    color: #6f42c1;
}

.status-S input:checked + label {
    border-color: #6f42c1;
}

.cena-cell {
    min-width: 100px;
}

.cena-input {
    width: 80px;
    padding: 0.3rem;
    text-align: right;
    margin-bottom: 0;
}

.cena-input.cena-nula {
    background-color: #e2e3e5 !important;
    font-weight: bold;
}

.cena-auto {
    font-size: 0.8em;
    color: #666;
}

.poznamka-input {
    width: 150px;
    padding: 0.3rem;
    margin-bottom: 0;
}

/* Omluvenka badge varianty */
.omluvenka-badge {
    background: #ffc107;
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 0.5rem;
    font-weight: bold;
}

.omluvenka-badge.status-O {
    background: #e2e3e5;
    color: #383d41;
}

.omluvenka-badge.status-PO {
    background: #fff3cd;
    color: #856404;
}

.omluvenka-badge.status-N {
    background: #f8d7da;
    color: #721c24;
}

/* Form actions varianty */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-actions button {
    min-width: 150px;
}

/* Lekce info */
.lekce-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.lekce-info h2 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.lekce-info p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

/* Legenda */
.legenda {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.legenda h4 {
    margin: 0 0 0.5rem 0;
}

.legenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9em;
}

.legenda-kod {
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 35px;
    text-align: center;
}

/* Omluvenky info */
.omluvenky-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.omluvenky-info h4 {
    margin: 0 0 0.5rem 0;
    color: #856404;
}

.omluvenky-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.omluvenky-info li {
    margin-bottom: 0.25rem;
}

/* Debug box */
.debug-box {
    background: #f0f0f0;
    border: 2px dashed #999;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.85em;
    white-space: pre-wrap;
}

.debug-box h4 {
    color: #c00;
    margin: 0 0 0.5rem 0;
}

/* Admin faktury specifické styly */
/* Sticky admin menu pro faktury */
body {
    margin: 0;
    padding: 0;
}

.admin-nav.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0;
    margin-bottom: 1rem;
}

main.container.faktury {
    padding-top: 1rem;
}

/* Status badge varianty pro faktury */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-unpaid {
    background: #f8d7da;
    color: #721c24;
}

/* Payment date */
.payment-date {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 0.25rem;
}

/* Statistiky varianty pro faktury */
.stats-row.faktury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card.faktury {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.stat-card.faktury .number {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
}

.stat-card.faktury .label {
    color: #666;
    font-size: 0.85em;
    margin-top: 0.25rem;
}

.stat-card.faktury.success .number {
    color: #28a745;
}

.stat-card.faktury.danger .number {
    color: #dc3545;
}

/* Filter bar varianty pro faktury */
.filter-bar.faktury {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-bar.faktury a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-bar.faktury a:hover {
    background: #e0e0e0;
}

.filter-bar.faktury a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Admin kurzy detail specifické styly */
.kurz-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kurz-barva.detail {
    width: 12px;
    height: 80px;
    border-radius: 6px;
}

.kurz-info.detail h1 {
    margin: 0 0 0.5rem 0;
}

.kurz-info.detail p {
    margin: 0;
    color: #666;
}

.kurz-actions.detail {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Section title varianty */
.section-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Děti seznam varianty */
.deti-seznam {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.dite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.dite-item:last-child {
    border-bottom: none;
}

.dite-item.neaktivni {
    opacity: 0.5;
    background: #f8f9fa;
}

.dite-info.detail {
    flex: 1;
}

.dite-datum {
    font-size: 0.85em;
    color: #666;
}

/* Přidat dítě formulář */
.pridat-dite-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pridat-dite-form > div {
    flex: 1;
    min-width: 150px;
}

.pridat-dite-form select,
.pridat-dite-form input {
    margin-bottom: 0;
}

/* Lekce grid */
.lekce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}

.lekce-item {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9em;
}

.lekce-item.zrusena {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Admin lekce kalendar specifické styly */
.kalendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.kalendar-nav h2 {
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.kalendar-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.kalendar-filter select {
    margin: 0;
    width: auto;
}

.kalendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.kalendar-header {
    background: #667eea;
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
}

.kalendar-den {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    vertical-align: top;
    cursor: pointer;
    transition: background 0.2s;
}

.kalendar-den:hover {
    background: #f0f0f0;
}

.kalendar-den.jiny-mesic {
    background: #f8f9fa;
    opacity: 0.5;
}

.kalendar-den.dnes {
    background: #e8f5e9;
}

.kalendar-den.vikend {
    background: #fff9f9;
}

.den-cislo {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 0.25rem;
    color: #666;
}

.kalendar-den.dnes .den-cislo {
    color: #28a745;
}

.lekce-item {
    font-size: 0.75em;
    padding: 0.25rem 0.4rem;
    margin-bottom: 0.2rem;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
}

.lekce-item:hover {
    opacity: 0.8;
}

.lekce-item.zrusena {
    opacity: 0.4;
    text-decoration: line-through;
}

.lekce-item .lekce-cas {
    font-weight: bold;
    white-space: nowrap;
}

.lekce-item .lekce-nazev {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.udalost-item {
    font-size: 0.7em;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.15rem;
    border-radius: 3px;
    color: white;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legenda pro kalendář */
.legenda {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legenda-barva {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Modal pro detail lekce */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Admin lekce zrusit specifické styly */
.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-box h3 {
    color: #856404;
    margin: 0 0 1rem 0;
}

.warning-box p {
    margin: 0.5rem 0;
}

.warning-box .lekce-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.warning-box .lekce-info strong {
    color: #667eea;
}

.danger-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.danger-actions .btn-danger {
    background: #dc3545;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.danger-actions .btn-danger:hover {
    background: #c82333;
}

.lekce-detail {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.lekce-detail h3 {
    margin-top: 0;
}

.lekce-detail p {
    margin: 0.5rem 0;
}

.email-info {
    background: #e7f3ff;
    border: 1px solid #007bff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.email-info h4 {
    margin: 0 0 0.5rem 0;
    color: #0056b3;
}

/* Responsive pro kalendář */
@media (max-width: 768px) {
    .kalendar-header {
        font-size: 0.7em;
        padding: 0.5rem 0.25rem;
    }
    
    .kalendar-den {
        min-height: 70px;
        padding: 0.25rem;
    }
    
    .lekce-item {
        font-size: 0.6em;
        padding: 0.1rem 0.2rem;
    }
}

/* Admin login specifické styly */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1rem;
}

.container-box {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.login-header h1 {
    margin: 0;
    font-size: 1.75rem;
    color: #1a1a2e;
}

.login-header p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Login formulář */
.login-form-group {
    margin-bottom: 1.5rem;
}

.login-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.login-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form-group input:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.2);
}

/* Login tlačítko */
.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(15, 52, 96, 0.4);
}

/* Login odkaz zpět */
.back-link {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link a {
    color: #0f3460;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Admin omluvenky nove specifické styly */
.badge {
    background: #dc3545;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75em;
    margin-left: 0.25rem;
}

/* Filtry pro omluvenky */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
}

.filter-tabs a:hover {
    background: #e0e0e0;
}

.filter-tabs a.active {
    background: #667eea;
    color: white;
}

/* Statistiky pro omluvenky */
.stats-row.omluvenky {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-card.omluvenky {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
}

.stat-card.omluvenky .number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.stat-card.omluvenky .label {
    color: #666;
    font-size: 0.85em;
}

.stat-card.omluvenky.alert .number {
    color: #dc3545;
}

/* Status pro omluvenky */
.status-O {
    color: #28a745;
    font-weight: bold;
}

.status-PO {
    color: #ffc107;
    font-weight: bold;
}

.status-N {
    color: #dc3545;
    font-weight: bold;
}

.zpracovano {
    opacity: 0.6;
}

.nezpracovano {
    background: #fff8e1;
}

/* Tlačítko malé */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8em;
    margin: 0.1rem;
}

/* Nav sekce pro omluvenky */
.nav-section {
    border-left: 2px solid rgba(255,255,255,0.3);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* Admin prehled specifické styly */
.container-fluid {
    max-width: none;
    padding: 0 1rem;
}

/* Nav right pro admin navigaci */
.admin-nav .nav-right {
    margin-left: auto;
}

/* Month filter */
.month-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.month-filter select {
    margin: 0;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    background: white;
}

.month-filter button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.month-filter button:hover {
    background: #5a6fd6;
}

/* Kurz card pro prehled */
.kurz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.kurz-header h2 {
    margin: 0;
    font-size: 1.2em;
}

/* Table wrapper */
.table-wrapper {
    overflow-x: auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

/* Tabulka prehled */
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-wrapper th {
    background: #f8f9fa;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    white-space: nowrap;
}

.table-wrapper td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.table-wrapper tr:hover {
    background: #f8f9fa;
}

/* Dítě jméno */
.dite-jmeno {
    font-weight: bold;
    color: #333;
}

/* Rodič info */
.rodic-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rodic-email {
    font-size: 0.8em;
    color: #666;
}

/* Lesson cell */
.lesson-cell {
    text-align: center;
    min-width: 80px;
}

/* Status varianty pro prehled */
.status-P {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-I {
    background: #cce5ff;
    color: #004085;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-O {
    background: #e2e3e5;
    color: #383d41;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-PO {
    background: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-N {
    background: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-S {
    background: #e2d5f1;
    color: #6f42c1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Price */
.price {
    font-weight: bold;
    text-align: right;
    display: block;
}

.price-zero {
    color: #999;
    font-weight: normal;
}

/* Note icon */
.note-icon {
    cursor: pointer;
    color: #667eea;
    font-weight: bold;
    font-size: 0.8em;
    margin-left: 0.5rem;
    text-decoration: underline;
}

.note-icon:hover {
    color: #5a6fd6;
}

/* Součet */
.soucet {
    font-weight: bold;
    text-align: center;
}

/* VS cell */
.vs-cell {
    text-align: center;
    min-width: 80px;
}

.vs-number {
    font-weight: bold;
    color: #667eea;
    display: block;
}

.vs-date {
    font-size: 0.8em;
    color: #666;
    display: block;
}

/* Row unbilled */
.row-unbilled {
    background: #fff8e1;
}

/* Paid status */
.paid-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.paid-status.paid {
    background: #d4edda;
    color: #155724;
}

.paid-status.unpaid {
    background: #f8d7da;
    color: #721c24;
}

/* Payment date */
.payment-date {
    font-size: 0.8em;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

/* Empty message */
.empty-message {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Tooltip modal */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.tooltip-overlay.active {
    display: block;
}

.tooltip-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    display: none;
}

.tooltip-modal.active {
    display: block;
}

.tooltip-modal p {
    margin: 0 0 1rem 0;
    word-break: break-word;
}

.tooltip-modal button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.tooltip-modal button:hover {
    background: #5a6fd6;
}

/* Admin rodice form specifické styly */
/* Nav links pro rodice */
.nav-links {
    margin-bottom: 2rem;
}

/* Formulář layout pro rodice */
.form-container.rodice {
    max-width: 800px;
    margin: 0 auto;
}

.form-section.rodice {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section.rodice h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1rem;
}

/* Form row pro rodice */
.form-row.rodice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Form group pro rodice */
.form-group.rodice {
    margin-bottom: 1rem;
}

.form-group.rodice label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group.rodice .required::after {
    content: ' *';
    color: #dc3545;
}

.form-group.rodice input,
.form-group.rodice select {
    width: 100%;
}

.form-group.rodice .hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Děti sekce */
.children-section {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.child-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.child-checkbox:last-child {
    border-bottom: none;
}

.child-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: auto;
}

.child-checkbox .child-info {
    flex: 1;
}

.child-checkbox .child-name {
    font-weight: 500;
}

.child-checkbox .child-detail {
    font-size: 0.85rem;
    color: #666;
}

.child-checkbox select {
    width: auto;
    min-width: 150px;
    margin-left: 1rem;
}

/* Heslo sekce */
.password-section {
    background-color: #fff8e1;
    border-color: #ffecb3;
}

.password-note {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Tlačítka pro rodice */
.form-actions.rodice {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

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

/* Empty state pro děti */
.no-children {
    text-align: center;
    padding: 1.5rem;
    color: #666;
}

.no-children a {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Admin rodice specifické styly */
/* Page subtitle */
.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

/* Toolbar pro rodice */
.toolbar.rodice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.toolbar.rodice .search-form {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.toolbar.rodice .search-form input {
    margin-bottom: 0;
}

.toolbar.rodice .actions {
    display: flex;
    gap: 0.5rem;
}

/* Status badge pro rodice */
.status-badge.rodice {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.rodice.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.rodice.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Děti seznam pro rodice */
.children-list {
    font-size: 0.85rem;
    color: #666;
}

.children-list .child {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.1rem;
}

/* Akce tlačítka pro rodice */
.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    display: inline;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn-edit {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}

/* Empty state pro rodice */
.empty-state.rodice {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state.rodice .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Pagination pro rodice */
.pagination.rodice {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination.rodice a,
.pagination.rodice span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #333;
}

.pagination.rodice a:hover {
    background-color: #f0f0f0;
}

.pagination.rodice .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Base styles */
body { 
    padding: 1.5em; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

/* Přepsání Pico.css container stylu */
main.container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Reset */
* {
    box-sizing: border-box;
}

/* Admin udalosti specifické styly */
/* Page header pro udalosti */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    margin: 0;
}

/* Událost card - opravený layout */
.udalost-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.udalost-barva {
    width: 8px;
    height: 50px;
    border-radius: 4px;
    flex-shrink: 0;
}

.udalost-info {
    flex: 1;
    min-width: 0;
}

.udalost-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1em;
    color: #333;
}

.udalost-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.udalost-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.udalost-badge {
    font-size: 0.75em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
    color: #333;
}

.udalost-badge.blokuje {
    background: #f8d7da;
    color: #721c24;
}

.udalost-badge.neaktivni {
    background: #6c757d;
    color: white;
}

.udalost-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.udalost-actions a {
    padding: 0.5rem 1rem;
    font-size: 0.85em;
    text-decoration: none;
    border-radius: 4px;
    background: #667eea;
    color: white;
    transition: background 0.2s;
}

.udalost-actions a:hover {
    background: #5a6fd6;
}

/* Typy událostí - jen barevný proužek vlevo */
.typ-prazdniny {
    border-left: 4px solid #ff9800;
}

.typ-svatek {
    border-left: 4px solid #e91e63;
}

.typ-akce {
    border-left: 4px solid #4caf50;
}

.typ-oznameni {
    border-left: 4px solid #2196f3;
}

.typ-jine {
    border-left: 4px solid #6c757d;
}

/* Section title */
.section-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    color: #667eea;
}

/* Admin udalosti form specifické styly */
/* Typ buttons pro udalosti */
.typ-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.typ-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
    text-align: center;
    min-width: 100px;
}

.typ-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.typ-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.typ-btn.typ-prazdniny.selected {
    border-color: #ff9800;
    background: #ff9800;
}

.typ-btn.typ-svatek.selected {
    border-color: #e91e63;
    background: #e91e63;
}

.typ-btn.typ-akce.selected {
    border-color: #4caf50;
    background: #4caf50;
}

.typ-btn.typ-oznameni.selected {
    border-color: #2196f3;
    background: #2196f3;
}

.typ-btn.typ-jine.selected {
    border-color: #6c757d;
    background: #6c757d;
}

/* Barva input */
input[type="color"].barva-input {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9em;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

/* Akce buttons pro udalosti form */
.akce-buttons.udalosti {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.akce-buttons.udalosti button[type="submit"] {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

.akce-buttons.udalosti button[type="submit"]:hover {
    background: #5a6fd6;
}

.akce-buttons.udalosti a.secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.akce-buttons.udalosti a.secondary:hover {
    background: #5a6268;
}

/* Danger zone pro udalosti */
.danger-zone.udalosti {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 2px solid #dc3545;
    border-radius: 8px;
    background: #fff5f5;
}

.danger-zone.udalosti h3 {
    color: #dc3545;
    margin: 0 0 1rem 0;
}

.danger-zone.udalosti form {
    display: inline;
}

.danger-zone.udalosti button.contrast {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.danger-zone.udalosti button.contrast:hover {
    background: #c82333;
}

/* Empty state pro udalosti */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Responsive pro udalosti */
@media (max-width: 768px) {
    .udalost-card {
        flex-direction: column;
        text-align: center;
    }
    
    .udalost-barva {
        width: 100%;
        height: 6px;
        margin-bottom: 1rem;
    }
    
    .udalost-actions {
        justify-content: center;
    }
}

/* Admin kurzy form specifické styly */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-full {
    grid-column: 1 / -1;
}

.akce-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Admin kurzy generovat specifické styly */
.kurz-info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.13), rgba(102, 126, 234, 0.07));
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* ============================================================================= */
/* INDEX.PHP SPECIFIC STYLES - Přehled Docházky */
/* ============================================================================= */

/* Hlavní layout */
body.index-page { padding: 1.5em; }

h1, h3 { text-align: center; }
h1 { margin-bottom: 0.5rem; }
h2 { font-size: 1.3em; margin: 0; padding: 0; }

/* Filtr formulář */
.filter-form { margin-bottom: 2rem; }
.grid { grid-gap: 0.75rem; align-items: end; }

/* Statistiky řádek */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-card .number { 
    font-size: 1.8em; 
    font-weight: bold; 
    color: #667eea; 
}

.stat-card .label { 
    color: #666; 
    font-size: 0.85em; 
}

/* Article styling */
article { 
    margin-bottom: 1rem; 
    padding: 0; 
    border: 1px solid var(--card-border-color); 
    border-radius: var(--card-border-radius); 
    overflow: hidden; 
}

article > header { 
    background-color: var(--table-header-background-color); 
    padding: 0.5rem 1rem; 
    border-bottom: 1px solid var(--card-border-color); 
    margin: -1px -1px 0 -1px; 
}

/* Tabulky */
table { margin: 0; }
th, td { padding: 0.4rem 0.6rem; text-align: center; }
td:first-child, td:nth-child(2), th:first-child, th:nth-child(2) { text-align: left; }

/* Statusy */
.status-P { color: #155724; font-weight: bold; }
.status-I { color: #004085; font-weight: bold; }
.status-O { color: #6c757d; font-weight: bold; }
.status-PO { color: #856404; font-weight: bold; }
.status-N { color: #721c24; font-weight: bold; }
.status-S { color: #6f42c1; font-weight: bold; }

/* Ceny */
.cena { font-size: 0.9em; color: #666; }
.cena-nula { color: #999; }

/* Graf */
.chart-container { max-width: 800px; margin: 0 auto 2rem auto; }
.total-sum { text-align: center; font-size: 1.2em; font-weight: bold; margin-bottom: 2rem; }

/* Table wrapper */
.table-wrapper { width: 100%; overflow-x: auto; }

/* ============================================================================= */
/* MAILY.HTML SPECIFIC STYLES - Mailování */
/* ============================================================================= */

/* Hlavní layout */
body.maily-page { padding: 1.5em; }
h1 { text-align: center; margin-bottom: 0.5rem; }
h2 { font-size: 1.3em; margin: 0; padding: 0; border-bottom: none; }

/* Article styling pro maily */
article { 
    margin-bottom: 1rem; 
    padding: 0; 
    border: 1px solid var(--card-border-color); 
    border-radius: var(--card-border-radius); 
    overflow: hidden; 
}

article > header { 
    background-color: var(--table-header-background-color); 
    padding: 0.5rem 1rem; 
    border-bottom: 1px solid var(--card-border-color); 
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0; 
    margin: -1px -1px 0 -1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

article > header .akce-tlacitka {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Rodiče items */
.rodic-item { 
    padding: 1rem; 
    border-bottom: 1px solid var(--card-border-color);
}

.rodic-item:last-child {
    border-bottom: none;
}

.rodic-hlavni {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rodic-jmeno {
    font-weight: bold;
    margin-right: 0.5rem;
}

.rodic-email {
    color: var(--muted-color);
    font-size: 0.9em;
}

.deti-seznam {
    margin-left: 2rem;
    margin-top: 0.5rem;
    color: var(--muted-color);
    font-size: 0.9em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--card-background-color);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Příjemci */
.prijemci-seznam {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: var(--card-sectionning-background-color);
}

.prijemce-item {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    font-size: 0.9em;
}

/* Akce tlačítka */
.akce-tlacitka {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Success message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* Responsive pro maily */
@media (max-width: 768px) {
    article > header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================================================= */
/* RODIČOVSKÉ MENU STYLES - Rodic menu */
/* ============================================================================= */

.rodic-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rodic-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}
.rodic-nav .nav-brand .logo {
    font-size: 1.5rem;
}
.rodic-nav .nav-brand .title {
    font-size: 1.2rem;
    font-weight: 600;
}

.rodic-nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.rodic-nav .nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    transition: all 0.2s;
}
.rodic-nav .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.rodic-nav .nav-links li a.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 600;
}

.rodic-nav .nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.rodic-nav .nav-user .user-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}
.rodic-nav .nav-user .btn-logout {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.rodic-nav .nav-user .btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .rodic-nav {
        flex-direction: column;
        text-align: center;
    }
    .rodic-nav .nav-links {
        justify-content: center;
    }
    .rodic-nav .nav-user {
        width: 100%;
        justify-content: center;
    }
}

/* Predefined buttons */
.predefined-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.predefined-buttons button {
    padding: 0.5rem 1rem;
    font-size: 0.85em;
}

.preview-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.udalosti-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.udalosti-info h4 {
    margin: 0 0 0.5rem 0;
    color: #856404;
}

.udalosti-seznam {
    font-size: 0.9em;
    max-height: 150px;
    overflow-y: auto;
}

.udalost-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #ffeeba;
}

.udalost-item:last-child {
    border-bottom: none;
}

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

.form-section h3 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group .hint {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

.form-group .required::after {
    content: ' *';
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

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

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn-edit {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}

/* Tabulky */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    vertical-align: middle;
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* Status badge */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-P {
    background: #d4edda;
    color: #155724;
}

.status-I {
    background: #cce5ff;
    color: #004085;
}

.status-O {
    background: #e2e3e5;
    color: #383d41;
}

.status-PO {
    background: #fff3cd;
    color: #856404;
}

.status-N {
    background: #f8d7da;
    color: #721c24;
}

.status-S {
    background: #e2d5f1;
    color: #6f42c1;
}

/* Admin děti specifické */
.nav-links {
    margin-bottom: 2rem;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.toolbar .search-form {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.toolbar .search-form input {
    margin-bottom: 0;
}

.toolbar .actions {
    display: flex;
    gap: 0.5rem;
}

/* Rodiče seznam */
.parents-list {
    font-size: 0.85rem;
    color: #666;
}

.parents-list .parent {
    display: inline-block;
    background: #e3f2fd;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.1rem;
}

.parents-list .parent-relation {
    font-size: 0.75rem;
    color: #999;
}

.no-parent-warning {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

/* Rodiče sekce */
.parents-section {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.parent-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.parent-checkbox:last-child {
    border-bottom: none;
}

.parent-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: auto;
}

.parent-checkbox .parent-info {
    flex: 1;
}

.parent-checkbox .parent-name {
    font-weight: 500;
}

.parent-checkbox .parent-detail {
    font-size: 0.85rem;
    color: #666;
}

.parent-checkbox select {
    width: auto;
    min-width: 150px;
    margin-left: 1rem;
}

/* Děti seznam */
.children-list {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.children-list .child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.children-list .child.neaktivni {
    opacity: 0.5;
    background: #f8f9fa;
}

.child-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.child-checkbox:last-child {
    border-bottom: none;
}

.child-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: auto;
}

.child-checkbox .child-info {
    flex: 1;
}

.child-checkbox .child-name {
    font-weight: 500;
}

.child-checkbox .child-detail {
    font-size: 0.85rem;
    color: #666;
}

/* Kurzy */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    margin: 0;
}

.den-sekce {
    margin-bottom: 2rem;
}

.kurz-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kurz-barva {
    width: 8px;
    height: 60px;
    border-radius: 4px;
    flex-shrink: 0;
}

.kurz-info {
    flex: 1;
}

.kurz-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1em;
}

.kurz-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.kurz-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.kurz-stat {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.kurz-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kurz-actions a {
    padding: 0.5rem 1rem;
    font-size: 0.85em;
}

.badge-inactive {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 0.5rem;
}

/* Barva výběr */
.barva-vyber {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.barva-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.barva-option:hover {
    transform: scale(1.1);
}

.barva-option.selected {
    border-color: #333;
}

/* Danger zone */
.danger-zone {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 2px solid #dc3545;
    border-radius: 8px;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
    margin-top: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Info box */
.info-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box .title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Akce buňky */
.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.actions a, .actions button {
    padding: 0.3rem 0.6rem;
    font-size: 0.85em;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    display: inline;
}

/* Statistiky */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-card .number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.stat-card .label {
    color: #666;
    font-size: 0.85em;
}

.stat-card.success .number {
    color: #28a745;
}

.stat-card.warning .number {
    color: #ffc107;
}

.stat-card.danger .number {
    color: #dc3545;
}

.stat-card.info .number {
    color: #17a2b8;
}

/* Filtry */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-bar a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    font-size: 0.9em;
    transition: all 0.2s;
}

.filter-bar a:hover {
    background: #e0e0e0;
}

.filter-bar a.active {
    background: #667eea;
    color: white;
}

.filter-form {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.filter-form .grid {
    gap: 1rem;
    align-items: end;
}

.filter-form label {
    margin-bottom: 0.25rem;
    font-size: 0.9em;
}

.filter-form select, .filter-form input {
    margin-bottom: 0;
}

/* Lekce */
.lekce-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.lekce-card.dnes {
    border-left: 4px solid #28a745;
}

.lekce-card.nezadano {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
}

.lekce-card.kompletni {
    border-left: 4px solid #6c757d;
    opacity: 0.7;
}

.lekce-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.lekce-datum {
    font-weight: bold;
    font-size: 1.1em;
    min-width: 100px;
}

.lekce-datum small {
    display: block;
    font-weight: normal;
    color: #666;
    font-size: 0.8em;
}

.lekce-nazev {
    flex: 1;
    min-width: 200px;
}

.lekce-nazev strong {
    color: #667eea;
}

.lekce-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9em;
}

.stat-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85em;
}

.stat-badge.ok {
    background: #d4edda;
    color: #155724;
}

.stat-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.stat-badge.info {
    background: #cce5ff;
    color: #004085;
}

.lekce-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-zadat {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-zadat:hover {
    background: #218838;
    color: white;
}

.btn-upravit {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-upravit:hover {
    background: #5a6fd6;
    color: white;
}

/* Události */
.udalost-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.udalost-barva {
    width: 8px;
    height: 60px;
    border-radius: 4px;
    flex-shrink: 0;
}

.udalost-info {
    flex: 1;
}

.udalost-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1em;
}

.udalost-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.udalost-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.udalost-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 0.5rem;
}

.udalost-badge.blokuje {
    background: #f8d7da;
    color: #721c24;
}

.udalost-badge.neaktivni {
    background: #6c757d;
    color: white;
}

.udalost-actions {
    display: flex;
    gap: 0.5rem;
}

.udalost-actions a {
    padding: 0.5rem 1rem;
    font-size: 0.85em;
}

/* Typy událostí */
.typ-prazdniny {
    background: #ff9800;
    color: white;
}

.typ-svatek {
    background: #e91e63;
    color: white;
}

.typ-akce {
    background: #4caf50;
    color: white;
}

.typ-oznameni {
    background: #2196f3;
    color: white;
}

.typ-jine {
    background: #6c757d;
    color: white;
}

.typ-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-size: 0.9em;
}

.typ-btn:hover {
    opacity: 0.8;
}

.typ-btn.selected {
    border-color: #333;
}

.typ-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    font-size: 0.9em;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #e0e0e0;
}

.pagination .current {
    background: #667eea;
    color: white;
}

/* Role badge */
.role-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.role-admin {
    background: #ffc107;
    color: #000;
}

.role-lektor {
    background: #17a2b8;
    color: white;
}

/* Status styly */
.status-aktivni {
    color: #28a745;
}

.status-neaktivni {
    color: #dc3545;
}

/* Cena buňky */
.cena-cell {
    font-weight: bold;
    text-align: right;
}

.cena-cell.nula {
    color: #999;
}

/* Vyúčtování */
.vyuctovano-ano {
    color: #28a745;
}

.vyuctovano-ne {
    color: #dc3545;
}

/* Heslo sekce */
.password-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Odkaz zpět */
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #667eea;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Důvod text */
.duvod-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.duvod-text:hover {
    white-space: normal;
}

/* Dítě jméno */
.dite-jmeno {
    font-weight: bold;
}

.dite-jmeno.zruseno {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Omluvenka badge */
.omluvenka-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* Note section */
.note-section {
    background-color: #f8f9fa;
}

/* No children */
.no-children {
    text-align: center;
    padding: 1.5rem;
    color: #666;
}

.no-children a {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Password note */
.password-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .admin-nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .admin-nav .nav-divider {
        display: none;
    }
    
    .page-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .kurz-card {
        flex-direction: column;
        text-align: center;
    }
    
    .kurz-barva {
        width: 100%;
        height: 8px;
    }
    
    .lekce-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Admin docházka lekce responsive */
    .status-options {
        flex-direction: column;
    }
    
    .dochazka-table {
        font-size: 0.85em;
    }
    
    .poznamka-input {
        width: 100px;
    }
}

/* Animace */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #666; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

/* ============================================================================= */
/* RODIC DASHBOARD SPECIFIC STYLES - Dashboard rodiče */
/* ============================================================================= */

/* Body background pro dashboard */
body.dashboard-page {
    background-color: #f5f7fa;
    min-height: 100vh;
}

/* Navbar varianty pro dashboard */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.navbar-brand .logo {
    font-size: 1.5rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-user .user-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.navbar-user .btn-logout {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.navbar-user .btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Uvítací sekce */
.welcome-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.welcome-section h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    color: #333;
}

.welcome-section p {
    margin: 0;
    color: #666;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.welcome-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.welcome-actions a:hover {
    background: #e0e0e0;
}

/* Karty dětí - plná šířka */
.children-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.child-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.child-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem 1.5rem;
    color: white;
}

.child-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-card-header .child-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.child-card-body {
    padding: 1.5rem;
}

.child-info {
    margin-bottom: 1.5rem;
}

.child-info-item {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.child-info-item:last-child {
    border-bottom: none;
}

.child-info-item .label {
    color: #666;
    min-width: 140px;
    flex-shrink: 0;
}

.child-info-item .value {
    color: #333;
    font-weight: 500;
    flex: 1;
    word-break: break-word;
}

/* Akční tlačítka na kartě */
.child-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.child-card-actions a,
.child-card-actions button {
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.child-card-actions a:hover,
.child-card-actions button:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.child-card-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.child-card-actions .btn-primary:hover {
    opacity: 0.9;
}

/* Rychlé odkazy */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.quick-link {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quick-link .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-link .title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-link .description {
    font-size: 0.85rem;
    color: #666;
}

/* Coming soon badge */
.coming-soon {
    position: relative;
}

.coming-soon::after {
    content: 'Brzy';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ffc107;
    color: #333;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.coming-soon:hover {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responzivita pro dashboard */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .children-grid {
        grid-template-columns: 1fr;
    }
}

/* Rodičovské menu - rozšířené styly pro strong element */
.rodic-nav .nav-links li strong {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Sticky rodic-nav varianta */
.rodic-nav.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ============================================================================= */
/* RODIC DETI SPECIFIC STYLES - Moje děti */
/* ============================================================================= */

.dite-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dite-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.dite-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.dite-info h3 {
    margin: 0 0 0.25rem 0;
}

.dite-info p {
    margin: 0;
    color: var(--muted-color);
    font-size: 0.9em;
}

.kurzy-section {
    margin-top: 1rem;
}

.kurzy-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1em;
    color: var(--primary);
}

.kurz-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.kurz-barva {
    width: 8px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.kurz-info {
    flex: 1;
}

.kurz-info .nazev {
    font-weight: 600;
    margin: 0;
}

.kurz-info .cas {
    font-size: 0.85em;
    color: var(--muted-color);
    margin: 0;
}

.lekce-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.lekce-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1em;
    color: #28a745;
}

.lekce-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #e8f5e9;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.9em;
}

.lekce-item .datum {
    font-weight: 700;
    min-width: 80px;
    color: #000;
    font-size: 1.1em;
}

.lekce-item .nazev {
    color: var(--muted-color);
}

.empty-message {
    color: var(--muted-color);
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ============================================================================= */
/* RODIC DOCHAZKA SPECIFIC STYLES - Přehled docházky */
/* ============================================================================= */

.nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-tabs a {
    padding: 0.75rem 1.5rem;
    background: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.nav-tabs a:hover {
    background: #e0e0e0;
}

.nav-tabs a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.month-nav h2 {
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.legenda-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================================================= */
/* RODIC FAKTURY SPECIFIC STYLES - Moje faktury */
/* ============================================================================= */

.payment-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 2rem;
}

.payment-info h3 {
    margin: 0 0 0.75rem 0;
    color: #1565c0;
}

.payment-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.payment-info li {
    margin-bottom: 0.25rem;
}

/* ============================================================================= */
/* RODIC KALENDAR SPECIFIC STYLES - Kalendář */
/* ============================================================================= */

.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.calendar-nav a {
    text-decoration: none;
    font-size: 1.5em;
}

.calendar-nav .month-year {
    font-size: 1.5em;
    font-weight: bold;
    min-width: 200px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    background: #667eea;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: bold;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.5rem;
    position: relative;
}

.calendar-day.empty {
    background: #f5f5f5;
}

.calendar-day.today {
    background: #fff3cd;
}

.day-number {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.5rem;
}

.calendar-day.today .day-number {
    color: #d63384;
}

/* Lekce v kalendáři - klikatelné */
.lekce-item.klikatelna {
    display: block;
    font-size: 0.75em;
    padding: 0.25rem 0.4rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    border-left: 3px solid;
    background: #f8f9fa;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.lekce-item.klikatelna:hover {
    background: #e9ecef;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lekce-item .cas {
    font-weight: bold;
}

.lekce-item .nazev {
    display: block;
}

.lekce-item .dite {
    color: #666;
    font-size: 0.9em;
}

.lekce-item.zrusena {
    text-decoration: line-through;
    opacity: 0.6;
    background: #f8d7da;
    cursor: not-allowed;
}

.lekce-item.zrusena .duvod-zruseni {
    text-decoration: none;
    display: block;
    color: #dc3545;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 0.2rem;
}

.lekce-item.minula {
    opacity: 0.7;
    cursor: default;
}

.omluvenka-icon {
    display: inline-block;
    margin-left: 0.3rem;
    text-decoration: none !important;
}

.btn-omluvit {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.7em;
    margin-left: 0.3rem;
    text-decoration: none;
}

.btn-omluvit:hover {
    background: #218838;
}

.udalost-item {
    font-size: 0.75em;
    padding: 0.25rem 0.4rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    background: #ffc107;
    color: #000;
}

/* ============================================================================= */
/* RODIC OMLUVENKA FORM SPECIFIC STYLES - Omluvit z lekce */
/* ============================================================================= */

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #667eea;
}

.card-header h1 {
    margin: 0;
    color: #667eea;
}

.dite-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dite-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.dite-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.dite-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.dite-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.3);
}

.dite-name {
    font-weight: 600;
    font-size: 1.1em;
}

.uz-omluveno {
    color: #28a745;
    font-size: 0.85em;
    margin-left: auto;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-group button,
.btn-group a {
    flex: 1;
}

.status-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9em;
}

.status-info strong {
    color: #856404;
}

/* ============================================================================= */
/* RODIC OMLUVENKY SPECIFIC STYLES - Moje omluvenky */
/* ============================================================================= */

.omluvenka-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.omluvenka-card.budouci {
    border-left: 4px solid #667eea;
}

.omluvenka-card.minula {
    opacity: 0.7;
    border-left: 4px solid #ccc;
}

.omluvenka-info {
    flex: 1;
    min-width: 200px;
}

.omluvenka-datum {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.omluvenka-kurz {
    color: #666;
}

.omluvenka-dite {
    font-weight: 500;
}

.omluvenka-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.omluvenka-status.O {
    background: #d4edda;
    color: #155724;
}

.omluvenka-status.PO {
    background: #fff3cd;
    color: #856404;
}

.omluvenka-status.N {
    background: #f8d7da;
    color: #721c24;
}

.omluvenka-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-zrusit {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-zrusit:hover {
    background: #c82333;
}

/* ============================================================================= */
/* RODIC SETTINGS SPECIFIC STYLES - Nastavení účtu */
/* ============================================================================= */

.settings-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.settings-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: #333;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h2 .icon {
    font-size: 1.25rem;
}

.account-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.account-info-item {
    flex: 1;
    min-width: 150px;
}

.account-info-item .label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.account-info-item .value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Responzivita pro rodičovské stránky */
@media (max-width: 768px) {
    .dite-header {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-grid {
        font-size: 0.8em;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
}
