/* ========================================
   AI Preskripce Admin - Centrální CSS
   Sjednocený styl s Web projektem
   ======================================== */

/* === CSS VARIABLES (stejné jako Web projekt) === */
:root {
    --bg-1: #fcfbfb;
    --bg-2: #f8f7f6;
    --text: #0a0a0a;
    --muted: #4f5556;
    --teal: #49e6d2;
    --glass: #f8f7f6;
    --glass-2: #fcfbfb;
    --stroke: rgba(0,0,0,0.12);
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --radius: 20px;
    color-scheme: light;
}

/* === ZÁKLADNÍ STYLY === */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, "DejaVu Sans";
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
    background-attachment: fixed;
}

/* === AUTH LAYOUT === */
.auth-page {
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    max-width: 400px;
    width: 100%;
    padding: 40px !important;
    animation: fadeInUp 0.5s ease-out;
    border-radius: 28px !important;
    background: var(--glass) !important;
    border: 1px solid var(--stroke) !important;
    box-shadow: var(--shadow) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.my-2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.my-3 {
    margin-top: 16px;
    margin-bottom: 16px;
}

.my-4 {
    margin-top: 24px;
    margin-bottom: 24px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mt-6 {
    margin-top: 32px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-4 {
    margin-right: 16px;
}

/* === RESPONSIVITA === */
@media (max-width: 480px) {
    .auth-page {
        padding: 10px;
    }
    
    .auth-container {
        padding: 30px 20px !important;
    }
}

/* === BLAZOR ERROR UI === */
#blazor-error-ui {
    background: var(--glass);
    border-top: 1px solid var(--stroke);
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--text);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* === MUDBLAZOR OVERRIDES === */
.mud-main-content {
    background: transparent;
}

.mud-appbar {
    background: var(--glass) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--stroke);
    box-shadow: var(--shadow) !important;
}

.mud-drawer {
    background: var(--glass-2) !important;
    border-right: 1px solid var(--stroke);
}

.mud-nav-link {
    color: var(--text) !important;
    border-radius: 12px;
    margin: 4px 8px;
}

.mud-nav-link:hover {
    background: var(--teal) !important;
    color: #0a0a0a !important;
}

.mud-nav-link.active {
    background: var(--teal) !important;
    color: #0a0a0a !important;
}

.mud-paper {
    background: var(--glass) !important;
    border: 1px solid var(--stroke) !important;
    box-shadow: var(--shadow) !important;
    border-radius: var(--radius) !important;
}

.mud-card {
    background: var(--glass) !important;
    border: 1px solid var(--stroke) !important;
    box-shadow: var(--shadow) !important;
    border-radius: 22px !important;
}

.mud-button-filled-primary {
    background-color: var(--teal) !important;
    color: #0a0a0a !important;
    box-shadow: 0 6px 20px rgba(73,230,210,.25) !important;
}

.mud-button-filled-primary:hover {
    background-color: var(--teal) !important;
    box-shadow: 0 10px 26px rgba(73,230,210,.35) !important;
    transform: translateY(-1px);
}

.mud-text-secondary {
    color: var(--muted) !important;
}

.mud-alert {
    border-radius: 14px !important;
    border: 1px solid var(--stroke);
}

.mud-table {
    background: var(--glass) !important;
    border-radius: var(--radius) !important;
}

.mud-table-head {
    background: var(--glass-2) !important;
}

.mud-table-row:hover {
    background: rgba(73,230,210,.08) !important;
}

.mud-input-outlined {
    border-color: var(--stroke) !important;
}

.mud-input-outlined:hover {
    border-color: var(--teal) !important;
}

.mud-input-outlined.mud-input-focused {
    border-color: var(--teal) !important;
}

.mud-progress-circular.mud-primary-text {
    color: var(--teal) !important;
}

.mud-icon-root.mud-primary-text {
    color: var(--teal) !important;
}
