/**
 * ZKO Jinonice - Professional Portal Design
 * Matching the clean, minimalist aesthetic of zkojinonice.cz
 *
 * Design Principles:
 * - Clean Material Design with subtle shadows
 * - Exact brand color: #594500 (brown from logo)
 * - Professional typography with Open Sans
 * - Responsive and accessible
 * - Sticky footer layout
 */

/* ===================================
   CSS VARIABLES - Brand Colors
   =================================== */

:root {
    --zko-brown: #1E1601;
    --zko-brown-dark: #3d2e00;
    --zko-brown-light: #735b00;
    --zko-yellow:#F7CD00;
    --zko-white: #FFFFFF;
    --zko-text: #333333;
    --zko-text-light: #666666;
    --zko-text-lighter: #888888;
    --zko-bg-light: #F8F9FA;
    --zko-bg-lighter: #FAFAFA;
    --zko-border: #DDDDDD;
    --zko-border-light: #F0F0F0;
    --zko-success: #4CAF50;
    --zko-danger: #F44336;
    --zko-info: #2196F3;
    --zko-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --zko-shadow-md: 0 3px 10px rgba(0, 0, 0, 0.12);
    --zko-shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
    --zko-radius: 4px;
    --zko-transition: all 0.25s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body.public-page {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--zko-text);
    background: url("/pohled_shora_3_big_banner-min.jpg") no-repeat center center fixed !important;
    background-size: cover !important;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   HERO SECTION - Logo & Title
   =================================== */

.simple-hero {
    background: transparent;
    text-align: center;
    padding: 3rem 2rem 0rem 2rem;
}

.simple-hero img {
    max-width: 140px;
    height: auto;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.simple-hero h1 {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.simple-hero p {
    font-size: 1.1rem;
    color: var(--zko-text);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   BUTTON SECTION
   =================================== */

.button-section {
    background: transparent;
    padding: 2rem 2rem;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.simple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 52px;
    padding: 0 2rem;
    font-size: 0.95rem;
    color: var(--zko-brown);
    background: var(--zko-yellow);
    border: none;
    text-decoration: none;
    transition: var(--zko-transition);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(89, 69, 0, 0.2);
}

.simple-btn i {
    margin-right: 0.5rem;
}

.simple-btn:hover {
    background: #4a3700;
    color: var(--zko-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.simple-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(89, 69, 0, 0.2);
}

.simple-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #999;
    box-shadow: none;
}

@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }

    .simple-btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */

.main-content {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* ===================================
   CONTENT BOX - Information Cards
   =================================== */

.content-box {
    background: var(--zko-white);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--zko-shadow-lg);
    border-radius: var(--zko-radius);
    border-top: 4px solid var(--zko-yellow);
}

.content-box h2 {
    font-size: 1.4rem;
    color: var(--zko-brown);
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.content-box h3 {
    font-size: 1.1rem;
    color: var(--zko-brown);
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.content-box p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--zko-text);
}

.content-box p:last-child {
    margin-bottom: 0;
}

.content-box a {
    color: var(--zko-brown);
    text-decoration: none;
    border-bottom: 1px solid var(--zko-brown-light);
    transition: var(--zko-transition);
    font-weight: 500;
}

.content-box a:hover {
    color: var(--zko-brown-dark);
    border-bottom-color: var(--zko-brown-dark);
}

.content-box ul {
    margin: 1rem 0 1rem 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
/* ===================================
   Members
   =================================== */

.members-button {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--zko-text-light);
    cursor: pointer;
    transition: var(--zko-transition);
    border-bottom: 3px solid transparent;
}
.members-button i {
    margin-right: 0.5rem;
}
.members-button.active{
    border-bottom-color: var(--zko-yellow);
    color: var(--zko-brown);
}
.members-button:focus{
    outline: none;
}
.members-button:first-child {
    border-right: 1px solid var(--zko-border-light);
}
@media (max-width: 768px) {

    .members-button {
        padding: 1rem 0.5rem;
    }
}
/* ===================================
   TABLE BOX - Material Design Tables
   =================================== */

.table-box {
    background: var(--zko-white);
    overflow: hidden;
    box-shadow: var(--zko-shadow-lg);
    border-radius: var(--zko-radius);
    margin-bottom: 2rem;
}

.table-box-header {
    background: var(--zko-brown);
    color: var(--zko-white);
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

.simple-table thead {
    background: var(--zko-bg-light);
}

.simple-table th {
    padding: 1.2rem 2rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--zko-brown);
    border-bottom: 2px solid var(--zko-border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.simple-table tbody tr {
    border-bottom: 1px solid var(--zko-border-light);
    transition: background-color 0.15s ease;
}

.simple-table tbody tr:last-child {
    border-bottom: none;
}

.simple-table tbody tr:hover {
    background: var(--zko-bg-lighter);
}

.simple-table td {
    padding: 1.5rem 2rem;
    font-size: 0.95rem;
    vertical-align: top;
}

.simple-table h4 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem 0;
    color: var(--zko-brown);
    font-weight: 600;
}

.simple-table small {
    font-size: 0.85rem;
    color: var(--zko-text-lighter);
    display: block;
    margin-top: 0.2rem;
}

.simple-table i {
    color: var(--zko-brown);
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: calc(var(--zko-radius) - 1px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status.open {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.status.closed {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.status.running {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

/* Mobile Responsive Table */
@media (max-width: 768px) {
    .table-box-header {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .simple-table thead {
        display: none;
    }

    .simple-table,
    .simple-table tbody,
    .simple-table tr {
        display: block;
        width: 100%;
    }

    .simple-table tr {
        margin-bottom: 1.5rem;
        background: var(--zko-white);
        padding: 0;
        border: 1px solid var(--zko-border-light);
        border-radius: var(--zko-radius);
    }

    .simple-table tr:last-child {
        margin-bottom: 0;
    }

    .simple-table td {
        display: block;
        text-align: left;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--zko-border-light);
    }

    .simple-table td.center {
        transform: none !important;
        text-align: left !important;
    }
    .simple-table td:last-child {
        border-bottom: none;
    }

    .simple-table td:before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.7rem;
        color: var(--zko-text-lighter);
        margin-bottom: 0.4rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .content-box {
        padding: 2rem 1rem;
    }
    .info-exam-member{
        padding: 0.5rem !important;
    }
}

/* ===================================
   LOGIN FORM
   =================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-box {
    background: var(--zko-white);
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--zko-shadow-lg);
    border-radius: var(--zko-radius);
    border-top: 4px solid var(--zko-brown);
}

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

.login-box-header img {
    max-width: 160px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-box-header h1 {
    font-size: 1.5rem;
    color: var(--zko-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-box-header p {
    font-size: 0.95rem;
    color: var(--zko-text-light);
}

.form-field {
    margin-bottom: 1.3rem;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--zko-text);
    margin-bottom: 0.5rem;
}

.form-field label i {
    color: var(--zko-brown);
    margin-right: 0.4rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--zko-border);
    border-radius: var(--zko-radius);
    font-size: 0.95rem;
    background: var(--zko-white);
    color: var(--zko-text);
    transition: var(--zko-transition);
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--zko-brown);
    box-shadow: 0 0 0 3px rgba(89, 69, 0, 0.1);
}

.form-field-with-icon {
    position: relative;
}

.input-with-icon {
    padding-right: 3rem !important;
}

.icon-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--zko-brown);
    transition: var(--zko-transition);
}

.icon-btn:hover {
    color: var(--zko-brown-dark);
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--zko-yellow);
    color: var(--zko-brown);
    border: none;
    border-radius: var(--zko-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--zko-transition);
    margin-top: 0.5rem;
}

.submit-btn i {
    margin-right: 0.5rem;
}

.submit-btn:hover {
    background: var(--zko-brown-dark);
    color: var(--zko-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(89, 69, 0, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.error-msg {
    padding: 0.9rem 1rem;
    background: #FFEBEE;
    color: var(--zko-danger);
    margin-bottom: 1.3rem;
    font-size: 0.9rem;
    border-left: 4px solid var(--zko-danger);
    border-radius: var(--zko-radius);
    font-weight: 500;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--zko-brown);
    text-decoration: none;
    font-weight: 500;
    transition: var(--zko-transition);
}

.back-link:hover {
    color: var(--zko-brown-dark);
}

@media (max-width: 480px) {
    .login-box {
        padding: 2.5rem 2rem;
    }

    .form-field input {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* ===================================
   FOOTER - Sticky Bottom
   =================================== */

.simple-footer {
    background: var(--zko-brown);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.8rem 1.5rem 10px;
}

.footer-links {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--zko-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--zko-transition);
    padding: 0.3rem 0.5rem;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

.simple-footer p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.simple-footer strong {
    font-weight: 600;
}

.simple-footer a {
    color: var(--zko-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--zko-transition);
}

.simple-footer a:hover {
    border-bottom-color: var(--zko-white);
}

/* ===================================
   HEADER BUTTON
   =================================== */

.header-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--zko-yellow);
    color: var(--zko-brown);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--zko-transition);
}

.header-btn:hover {
    background: var(--zko-brown-dark);
    color: var(--zko-white);
    text-decoration: none;
}

.header-btn i {
    margin-right: 0.5rem;
}

/* ===================================
   BUTTON SECTION
   =================================== */

.button-section-wrapper {
    background: transparent;
    padding: 2rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.button-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.simple-btn-elevated {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===================================
   CONTENT BOX VARIATIONS
   =================================== */

.content-box-centered {
    max-width: 700px;
    margin: 0 auto;
}

.content-box-wide {
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   MESSAGE BOXES
   =================================== */

.success-msg {
    padding: 1rem;
    background: #E8F5E9;
    color: #2E7D32;
    margin-bottom: 1.5rem;
    border-left: 3px solid #4CAF50;
    border-radius: var(--zko-radius);
}

.info-box {
    padding: 1rem;
    background: #FFF9F0;
    border-left: 3px solid var(--zko-brown);
    margin-bottom: 1.5rem;
    border-radius: var(--zko-radius);
}

.info-box-yellow {
    padding: 1.2rem;
    background: #FFF9F0;
    border-left: 3px solid var(--zko-yellow);
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.info-box strong,
.info-box-yellow strong {
    color: var(--zko-brown);
}

.info-box span,
.info-box-yellow span {
    color: var(--zko-text);
}

.gdpr-notice {
    padding: 0.8rem;
    background: #F5F5F5;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: var(--zko-radius);
}

.gdpr-notice a {
    color: var(--zko-brown);
    text-decoration: underline;
}

/* ===================================
   FORM GRID LAYOUTS
   =================================== */

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

.form-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.form-grid.mt {
    margin-top: 1.2rem;
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-heading {
    color: var(--zko-brown);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.section-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--zko-border);
}

/* ===================================
   TAB SYSTEM
   =================================== */

.tab-container {
    background: white;
    box-shadow: var(--zko-shadow-md);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--zko-border-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===================================
   INFO DISPLAY GRID
   =================================== */

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

.info-section-title {
    color: var(--zko-brown);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--zko-yellow);
}

.info-field-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-field-label {
    font-weight: 600;
    color: var(--zko-text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-field-value {
    margin: 0.3rem 0 0 0;
    font-size: 1rem;
    color: var(--zko-text);
}

.info-divider {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--zko-border);
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-state {
    padding: 3rem;
    text-align: center;
    background: var(--zko-bg-light);
    border-radius: 4px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--zko-text-lighter);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--zko-text-light);
    font-size: 1.1rem;
    margin: 0;
}

/* ===================================
   ACTION BUTTONS
   =================================== */

.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--zko-yellow);
    color: var(--zko-brown);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--zko-transition);
}

.action-btn:hover {
    background: var(--zko-brown-dark);
    color: var(--zko-white);
    text-decoration: none;
    transform: translateY(-1px);
}

.action-btn i {
    margin-right: 0.4rem;
}

.action-btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* ===================================
   TABLE ENHANCEMENTS
   =================================== */

.simple-table th.center,
.simple-table td.center {
    text-align: center;
}

.text-danger {
    color: #F44336;
}

.text-small {
    font-size: 0.85rem;
}

/* ===================================
   RECAPTCHA CONTAINER
   =================================== */

.recaptcha-container {
    text-align: center;
    margin: 1.5rem 0;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pb-1 { padding-bottom: 1rem; }
.pt-2 { padding-top: 2rem; }
.pb-2 { padding-bottom: 2rem; }

.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.m-0 { margin: 0; }
.p-0 { padding: 0; }

.list-style-inside {
    margin: 0;
    padding-left: 1.2rem;
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */

@media (max-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
}

@media (min-width: 769px) {
    .d-md-inline { display: inline; }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--zko-brown);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    body.public-page {
        background: white;
    }

    .simple-hero,
    .button-section,
    .content-box,
    .table-box {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .simple-btn {
        display: none;
    }
}
