        /* --- Základní reset a nastavení --- */
        :root {
            --primary-color: #3b82f6; /* Modrá pro akcenty */
            --primary-hover-color: #2563eb;
            --dark-bg: #111827; /* Tmavě šedé pozadí */
            --medium-bg: #1f2937; /* Středně tmavé pozadí pro kartu */
            --light-text: #f3f4f6; /* Světlý text */
            --gray-text: #9ca3af; /* Šedý text */
            --input-bg: #374151; /* Pozadí pro input pole */
            --error-bg: #450a0a; /* NOVÉ: Tmavě červené pozadí pro chybu */
            --error-text: #fca5a5; /* NOVÉ: Světle červený text pro chybu */
            --error-border: #991b1b; /* NOVÉ: Červený okraj pro chybu */
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--dark-bg);
            color: var(--light-text);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }



/* Fixní header a footer */ 
.header, .footer {      background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px;
    margin: 0;
    display: flex;
    align-items: center;} 
.header {position:fixed; top:0; left:0; width:100%; height:50px; z-index:1000;}
.footer {position:fixed; bottom:0; left:0; width:100%; height:30px; z-index:1000; justify-content: center;color:var(--dark-bg)
}

.main {margin-top:50px; margin-bottom:30px; width:100%;overflow: auto;padding:2rem;background-color: var(--dark-bg);}
    .header img {
        height: 40px;width: auto;
        vertical-align: middle;
        margin-right: 5px;
    }
    .header h1 {
        font-size: 24px;
        color: #333;
        margin: 0;
        flex-grow: 1;
    }
#logout {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

#logout:hover {
    background-color: var(--primary-hover-color);
}

#logout:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

#user-info {
    color: #333;
    font-size: 0.9rem;
    margin-left: 1rem;
    padding-right: 1rem;
}

#user-info strong {
    color: var(--primary-color);
    font-weight: 600;
}



        /* --- Přihlašovací karta --- */
        .login-container {
            width: 100%;
            max-width: 400px;
            background-color: var(--medium-bg);
            border-radius: 0.75rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        /* --- Logo --- */
        .logo-image {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .content-wrapper {
            padding: 2.5rem;
        }

        /* --- Formulářové prvky --- */
        .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .login-header h1 {
            margin: 0;
            font-size: 1.875rem;
            font-weight: 600;
        }

        /* NOVÝ BLOK PRO CHYBOVOU ZPRÁVU */
        .error-message {
            padding: 1rem;
            margin-bottom: 1.5rem;
            background-color: var(--error-bg);
            color: var(--error-text);
            border: 1px solid var(--error-border);
            border-radius: 0.375rem;
            text-align: center;
            font-size: 0.9rem;
        }

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

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--gray-text);
        }

        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            background-color: var(--input-bg);
            border: 1px solid transparent;
            border-radius: 0.375rem;
            color: var(--light-text);
            font-size: 1rem;
            transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }

        .form-input::placeholder {
            color: var(--gray-text);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
        }

        /* --- Tlačítko --- */
        .submit-button {
            width: 100%;
            padding: 0.875rem 1rem;
            background-color: var(--primary-color);
            color: white;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            border-radius: 0.375rem;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
            margin-top: 1rem;
        }

        .submit-button:hover {
            background-color: var(--primary-hover-color);
        }

        .submit-button:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
        }


        /* Aplikační karty (podobné login kontejneru) */
.apps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background-color: var(--medium-bg);
    border-radius: 0.5rem;
    padding: 0;
    text-align: center;
    text-decoration: none;
    color: var(--light-text);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
    background-color: #374151;
}
.app-icon-wrapper {
    background-color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-icon {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.app-card h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}
.app-card-content {
    padding: 1.5rem;
}
.app-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 0;
}


/* Toolbar nad tabulkami (vzhled sladěný s login) */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--medium-bg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--light-text);
}
.toolbar-title { font-weight: 600; }
.toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.toolbar-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.12); }

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background: var(--input-bg);
    color: var(--light-text);
    transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: #445063; }

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: transparent;
}
.btn-primary:hover { background: var(--primary-hover-color); }

.btn-danger {
    background: #ef4444;
    color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.toolbar-search {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
    background: var(--input-bg);
    color: var(--light-text);
}
.toolbar-search::placeholder { color: var(--gray-text); }



        /* --- Responzivní úpravy --- */
        @media (max-width: 480px) {
            .content-wrapper {
                padding: 2rem 1.5rem;
            }
        }