/*=== MAIN.CSS - SPOLEČNÉ STYLY PRO VŠECHNY STRÁNKY ===*/

/*=== VARIABLES ===*/
:root {
    --bg-primary: #0f2a1d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-hover: #2a2a2a;
    --bg-active: #333;
    --bg-input: #ffffff;
    --bg-bubble-mine: #0f2a1d;
    --bg-bubble-peer: #2a2a2a;

    --text-primary: #f0f0f0;
    --text-secondary: #999;
    --text-muted: #666;
    --text-inverse: #fff;

    --border-color: #2a2a2a;
    --border-light: #333;

    --accent: #15803d;
    --accent-hover: #166534;
    --acccent-glow: rgba(21, 128, 61, 0.18);

    /* Site-specific variables */
    --site-gradient: linear-gradient(135deg, #002e11 0%, #03772e 100%);
    --btn-primary: #15803d;
    --btn-primary-hover: #166534;
    --white: #ffffff;

    --danger: #ef4444;
    --success: #22c55e;
    --warning: #eab308;

    --shadow: 0 2px 12px rgba(0, 0, 0, .4);
    --radius: 10px;
    --radius-sm: 6px;

    --sidebar-w: 380px;
    --header-h: 60px;

    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;

    color-scheme: dark;
}

/*=== RESET ===*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: var(--accent);
    color: #fff;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: #333;
    background: var(--bg-input);
    border: 1px solid #e6e6e6;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    outline: none;
    transition: border-color .2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--acccent-glow);
}

/*=== SCROLLBAR ===*/
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/*=== BUTTONS ===*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

/* === Site-wide background gradient (unified) === */
html, body {
    background: var(--site-gradient) no-repeat center center fixed;
    background-size: cover;
}

/* === Wrapper a registrační karta: bílé pozadí (ne form uvnitř) === */
.wrapper,
.registration-form {
    background: var(--white);
    color: #111;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* Form uvnitř wrapperu/karty nesmí mít vlastní rámeček/stín,
   jinak vzniká vnořený „dvojitý" box */
.wrapper form,
.registration-form form {
    background: transparent;
    border: none;
    box-shadow: none;
    color: inherit;
}

/* === Submit buttons inside forms: green and lighter on hover === */
form input[type="submit"],
form button[type="submit"] {
    background: var(--btn-primary);
    color: #fff;
    border-radius: 40px;
    transition: background .15s, transform .08s;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
}

form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

/* Ensure .btn-primary follows the same green */
.btn-primary {
    background: var(--btn-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--btn-primary-hover);
}
