/* Základní reset a proměnné */
:root {

    color-scheme: light only;

    --primary-color: #000000;
    --primary-hover: #333333;
    --primary-light: #f0f0f0;
    --secondary-color: #ffffff;
    --secondary-hover: #f5f5f5;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
}



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

/* Reset pro odkazy v hlavičkách - odstranit podtržení */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none !important;
    border-bottom: none !important;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Základní styly */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Odkazy */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Obrazovky */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Přihlašovací/Registrační obrazovka */
#loginScreen, #registerScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

#loginScreen::before, #registerScreen::before {
    content: '(M)';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40vw;
    font-weight: bold;
    color: #ffffff;
    pointer-events: none;
    z-index: 0;
    
    /* Neon glow efekt */
    filter: blur(5px) brightness(1.0);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4),
        0 0 80px rgba(255, 255, 255, 0.2);

    animation: neonPulse 4s infinite ease-in-out;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4),
            0 0 80px rgba(255, 255, 255, 0.2);
        opacity: 0.6;
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.9),
            0 0 60px rgba(255, 255, 255, 0.7),
            0 0 90px rgba(255, 255, 255, 0.5),
            0 0 120px rgba(255, 255, 255, 0.3);
        opacity: 0.8;
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.5);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #666666;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Formuláře */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Input styly */
input, textarea, select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

input:hover, textarea:hover, select:hover {
    border-color: #666666;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.1);
}

input[type="date"], input[type="time"] {
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Placeholdery */
::placeholder {
    color: var(--text-light);
    opacity: 1;
}

/* Tlačítka */
button {
    color: #000000;
    padding: 1rem 2rem;
    background: #000000;
    color: white;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Černý text na specifických tlačítkách */
.btn-join, .btn-substitute, .add-btn {
    color: #000000 !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
}

/* SMAZAT - hover efekty u specifických tlačítek, které způsobují pohyb */
.btn-join:hover, .btn-substitute:hover, 
.btn-leave:hover, .btn-delete:hover {
    color: #ffffff !important;
    background: #000000 !important;
    /* Chybí transform, ale pro jistotu explicitně zakážeme */
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Variace tlačítek */
.btn-secondary {
    background-color: var(--secondary-color);
}

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

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-join {
    background-color: var(--secondary-color);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

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

.btn-leave, .btn-delete {
    background-color: var(--danger-color);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-leave:hover, .btn-delete:hover {
    background-color: var(--danger-hover);
}

/* Switch form link */
.switch-form {
    text-align: center;
    margin-top: 2rem;
    color: #999999;
    font-size: 0.9rem;
    font-weight: 300;
}

.switch-form a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.switch-form a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.switch-form a:hover::after {
    width: 100%;
}

/* Navigační lišta */
.navbar {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar h1 {
    color: #ffffff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info span {
    color: #ffffff;
    font-weight: 300;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.logout-btn {
    background: #ffffff;
    color: #000000;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    border: 2px solid #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logout-btn:hover {
    background: transparent;
    color: #ffffff;
}

/* Hlavní kontejner */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Sekce */
.section {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
}

.section h2 {
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-light);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Seznam brigád */
/* Nové styly pro 2 karty a úzké šipky */
.brigades-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0;
}

.brigades-list::-webkit-scrollbar {
    display: none;
}

.brigades-list-container {
    position: relative;
    width: 100%;
}

.brigades-list-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.brigades-list-inner::-webkit-scrollbar {
    width: 8px;
}

.brigades-list-inner::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.brigades-list-inner::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.brigade-card {
    flex: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}


/* Karta brigády */
.brigade-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.brigade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
}

.brigade-card:hover::before {
    left: 0;
}

.brigade-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.brigade-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.brigade-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

/* Badge styly */
.brigade-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-available {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.badge-full {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.brigade-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brigade-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* Admin sekce */
.admin-section {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
}

.add-btn {
    background-color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Formulář pro brigádu */
.brigade-form {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.brigade-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-buttons button[type="button"] {
    background-color: var(--text-secondary);
}

.form-buttons button[type="button"]:hover {
    background-color: #4b5563;
}

/* Grid pro formuláře */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Stavy a zprávy */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.error-message, .success-message, .warning-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--secondary-color);
}

.warning-message {
    background-color: #fed7aa;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background-color: var(--text-primary);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Klikací (M) logo s neon efektem */
.logo-m {
    display: inline-block;
    font-weight: inherit;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border-bottom: none;
    outline: none;
}

.logo-m:hover {
    transform: scale(1.15);
    text-decoration: none;
    border-bottom: none;
}

/* Specifické styly pro různé pozice */

/* Logo v navbaru (BÍLÉ) */
.navbar .logo-m {
    color: #ffffff;
}

.navbar .logo-m:hover {
    color: #ffffff !important;
    text-shadow: 
        0 0 5px #ffffff,
        0 0 10px #ffffff,
        0 0 20px #ffffff,
        0 0 40px #ffffff;
}

/* Logo v přihlašovací kartě (ČERNÉ) */
.login-container .logo-m {
    color: #000000;
}

.login-container .logo-m:hover {
    color: #000000 !important;
    text-shadow: 
        0 0 5px #000000,
        0 0 10px #000000,
        0 0 20px #000000,
        0 0 40px #000000;
}

/* Zabránit jakémukoli podtržení v hlavičkách */
h1 a {
    text-decoration: none !important;
    border-bottom: none !important;
}

h1 a:hover,
h1 a:focus,
h1 a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Dropdown menu */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: rgba(255,255,255,0.2);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #000000;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Modální okna */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    animation: slideUp 0.3s ease;
}



.close {
    position: absolute;

    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: #000000;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000000;
}

/* Neonové efekty */
.glow-red {
    animation: glow-red-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.3) !important;
}

@keyframes glow-red-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), inset 0 0 20px rgba(255, 0, 0, 0.05); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.5), inset 0 0 25px rgba(255, 0, 0, 0.1); }
}

.glow-green {
    animation: glow-green-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.3) !important;
}

@keyframes glow-green-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 25px rgba(0, 255, 0, 0.1); }
}

.highlighted-urgent {
    animation: urgent-pulse 1s ease-in-out infinite;
    border: 2px solid #ffaa00 !important;
}

@keyframes urgent-pulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 170, 0, 0.6), 
                    inset 0 0 30px rgba(255, 170, 0, 0.1);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 170, 0, 0.8), 
                    inset 0 0 35px rgba(255, 170, 0, 0.15);
        transform: scale(1.02);
    }
}

.hidden-brigade {
    opacity: 0.5;
    border-style: dashed !important;
}

/* Progress bar */
.capacity-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #000000, #333333);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Účastníci hover */
.participants-count:hover {
    text-decoration: underline;
    color: #000000;
}

#participantsList ul {
    list-style: none;
    padding: 0;
}

#participantsList li {
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

#participantsList li:last-child {
    border-bottom: none;
}
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar h1 {
        font-size: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .brigades-list {
        grid-template-columns: 1fr;
    }
    
    .brigade-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .brigade-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 1.5rem;
        border-radius: var(--radius);
    }
    
    .login-container {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    .brigade-card {
        padding: 1rem;
    }
    
    button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    input, textarea, select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

/* Print styly */
@media print {
    .navbar, .logout-btn, .brigade-actions, .add-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Animace pro seznamy */
.brigade-card {
    animation: fadeInUp 0.3s ease;
}

.brigade-card:nth-child(1) { animation-delay: 0.1s; }
.brigade-card:nth-child(2) { animation-delay: 0.2s; }
.brigade-card:nth-child(3) { animation-delay: 0.3s; }
.brigade-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus viditelnost pro klávesnici */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Vlastní scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
}

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

.brigades-list-inner {
    display: flex;
    flex-direction: column; /* ZMĚNA z flex na column */
    gap: 1.25rem;
    padding: 1rem 0;
    max-height: 600px; /* PŘIDAT výškový limit */
    overflow-y: auto; /* ZMĚNA z overflow-x na overflow-y */
}

.brigades-list-inner::-webkit-scrollbar {
    display: none;
}


.brigade-card {
    width: 100%; 
    max-width: 800px; 
    margin: 0 auto; 
}

/* Hlavička karty - fixní výška */
.brigade-header {
    min-height: 60px;
    flex-shrink: 0;
}

/* Popis brigády - zabírá zbývající prostor */
.brigade-description {
    flex: 1;
    overflow: hidden;
    margin-bottom: 1rem;
    max-height: 4.5em;
}

/* Informace o brigádě - fixní výška */
.brigade-info {
    min-height: 40px;
    flex-shrink: 0;
}

/* Kapacitní lišta - fixní pozice */
.capacity-bar {
    margin: 1rem 0;
    flex-shrink: 0;
}

/* Akční tlačítka - vždy úplně dole */
.brigade-actions {
    margin-top: auto; /* Posune tlačítka dolů */
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.brigade-actions button {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

/* Admin ikonky - v pravém dolním rohu nad tlačítky */

.admin-controls {
    position: absolute;
    top: 75px;
    right: 27px;
    display: flex;
    gap: 0.5rem;
    z-index: 15;
}

.admin-controls button {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;  /* Změna z 50% na 8px */
    width: 40px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #000000;
}

.admin-controls button:hover {
    background: #000000;
    color: #ffffff !important;
    transform: scale(1.05);
}

.admin-controls button:nth-child(2) {  /* Druhé tlačítko je hvězdička */
    font-weight: bold;
    color: #000000 !important;
}

/* Specifické styly pro tlačítka v kartách */
.btn-join, .btn-substitute, .btn-leave, .btn-delete, .btn-view-participants {
    color: #000000 !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    font-weight: 600;
}

.btn-join:hover, .btn-substitute:hover,
.btn-leave:hover, .btn-delete:hover, .btn-view-participants:hover {
    color: #ffffff !important;
    background: #000000 !important;
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    .brigade-card {
        height: 480px; /* Více místa na mobilech */
        min-height: 480px;
    }
    
    .brigade-actions {
        flex-direction: column;
    }
    
    .brigade-actions button {
        min-width: 100%;
    }
    
    .admin-controls {
        bottom: 5rem; /* Výš na mobilech */
    }
    
    .brigade-description {
        max-height: 6em; /* Více místa pro text na mobilech */
    }
}

/* Zajistíme konzistentní vzhled pro prázdné stavy */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Styly pro zvýrazněné brigády */
.highlighted-urgent .brigade-actions {
    border-top-color: #ffaa00;
}

/* Styly pro skryté brigády */
.hidden-brigade .brigade-actions {
    opacity: 0.7;
}

/* Detail brigády */
.brigade-detail-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.brigade-detail-content {
    padding: 0;
}

.brigade-detail-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
}

.brigade-detail-header h1 {
    margin: 0;
    color: white;
}

.brigade-detail-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.badge-highlighted {
    background: #ffaa00;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-past {
    background: #6b7280;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge-full {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.brigade-detail-body {
    padding: 2rem;
}

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

.detail-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.btn-join-large, .btn-leave-large, .btn-participants {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.btn-join-large {
    background: #000;
    color: white;
    border: 2px solid #000;
}

.btn-leave-large {
    background: #ef4444;
    color: white;
    border: 2px solid #ef4444;
}

.btn-participants {
    background: white;
    color: #000;
    border: 2px solid #000;
}

/* Správa drinků */
.drinks-manager-content {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.add-drink-btn {
    background: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid #000;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    font-weight: 600;
}

.drink-manager-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.drink-header h3 {
    margin: 0;
}

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

.drink-actions button {
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.drinks-checklist {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: #f9f9f9;
}

.drink-checkbox {
    display: block;
    padding: 0.5rem;
    cursor: pointer;
}

.drink-checkbox:hover {
    background: #e0e0e0;
    border-radius: 4px;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.drink-card {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.25rem;
}

.drink-card h4 {
    margin: 0 0 1rem 0;
    color: #0369a1;
}

.drink-ingredients {
    font-size: 0.95rem;
    line-height: 1.6;
}

.ingredient {
    padding: 0.25rem 0;
}

.drink-instructions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #bae6fd;
    font-size: 0.9rem;
    color: #67898a;
}

.glow-yellow {
    animation: glow-yellow-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5), inset 0 0 20px rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.5) !important;
}

@keyframes glow-yellow-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5), inset 0 0 20px rgba(255, 193, 7, 0.1); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.7), inset 0 0 25px rgba(255, 193, 7, 0.15); 
    }
}

.badge-overflow {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.btn-substitute {
    background: #fbbf24 !important;
    color: #000000 !important;
    border: 2px solid #f59e0b !important;
}

/* Detail admin controls */
.detail-admin-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.detail-admin-controls button {
    background: rgba(255,255,255,0.2);
    border: 2px solid #ffffff;
    border-radius: 8px;  /* Změna z 50% na 8px */
    width: 48px;
    height: 36px;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;  /* Vždy viditelné */
}

.detail-admin-controls button:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.btn-join-red {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 2px solid #ef4444 !important;
    font-weight: 600;
}

.btn-join-red:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-join-green {
    background: #10b981 !important;
    color: #ffffff !important;
    border: 2px solid #10b981 !important;
    font-weight: 600;
}

.btn-join-green:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

/* Oranžový neon pro zvýrazněné brigády */
.glow-orange {
    animation: glow-orange-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.6), inset 0 0 25px rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.6) !important;
    border-width: 2px !important;
}

@keyframes glow-orange-pulse {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(255, 102, 0, 0.6), inset 0 0 25px rgba(255, 102, 0, 0.1); 
    }
    50% { 
        box-shadow: 0 0 35px rgba(255, 102, 0, 0.8), inset 0 0 30px rgba(255, 102, 0, 0.15); 
    }
}

/* Slabší žlutý neon pro náhradníky */
.glow-yellow-soft {
    animation: glow-yellow-soft-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3), inset 0 0 15px rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.3) !important;
}

@keyframes glow-yellow-soft-pulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.3), inset 0 0 15px rgba(255, 193, 7, 0.05); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.4), inset 0 0 18px rgba(255, 193, 7, 0.08); 
    }
}

/* Skupina pro datum inputy */
.date-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input-group input {
    width: auto;
    flex: 1;
}

.date-separator {
    font-weight: bold;
    color: #666;
}

/* === RESPONZIVNÍ DESIGN PRO MOBILY A TABLETY === */

/* Tablety (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .brigades-list-inner {
        max-height: none;
    }
    
    .brigade-card {
        max-width: 100%;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .detail-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

/* Mobilní zařízení (do 768px) */
@media (max-width: 768px) {
    /* Navigace */
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar h1 {
        font-size: 1.5rem;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    /* Login obrazovka */
    .login-container {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    /* Sekce */
    .section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Brigádní karty */
    .brigade-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .brigade-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brigade-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .brigade-actions {
        flex-direction: column;
    }
    
    .brigade-actions button {
        width: 100%;
        padding: 0.875rem;
    }
    
    .admin-controls {
        position: static;
        margin-bottom: 1rem;
        justify-content: space-around;
    }
    
    /* Formuláře */
    input, textarea, select {
        font-size: 16px; /* Zabrání zoomu na iOS */
        padding: 0.875rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons button {
        width: 100%;
    }
    
    /* Modální okna */
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
    }
    
    .brigade-detail-content {
        height: 100vh;
        overflow-y: auto;
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions button {
        width: 100%;
    }
    
    /* Dropdown menu */
    .dropdown-menu {
        width: 100%;
        right: auto;
        left: 0;
    }
    
    /* Datum inputy */
    .date-input-group {
        display: flex;
        gap: 0.25rem;
    }
    
    .date-input-group input {
        flex: 1;
        min-width: 0;
    }
    
    /* Admin sekce */
    .add-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Drinks grid */
    .drinks-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra malé obrazovky (do 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1rem; }
    
    .login-container h1 {
        font-size: 2rem;
    }
    
    .brigade-card {
        padding: 0.875rem;
    }
    
    button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .info-item {
        font-size: 0.875rem;
    }
    
    /* Zabránit horizontálnímu scrollu */
    html, body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .section {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Speciální úpravy pro iOS */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px;
    }
    
    .modal {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape orientace na mobilech */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        position: relative;
    }
    
    .login-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .modal-content {
        height: auto;
        max-height: 90vh;
    }
}

/* Touch-friendly prvky */
@media (pointer: coarse) {
    button, .btn-join, .btn-leave, .btn-delete {
        min-height: 44px;
        min-width: 44px;
    }
    
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .dropdown-menu a {
        padding: 1rem;
    }
    
    .close {
        padding: 0.5rem;
        font-size: 2.5rem;
        
    }
}

/* Notifikační historie */
.notifications-history {
    max-width: 700px;
}

.notification-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #000;
    color: white;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.notification-date {
    font-size: 0.875rem;
    color: #666;
}

.notification-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.notification-status.sent {
    color: #10b981;
}

.notification-status.failed {
    color: #ef4444;
}

/* Hromadný email */
.bulk-email-content {
    max-width: 600px;
}

.recipient-options {
    margin: 1rem 0;
}

.recipient-options label {
    display: block;
    padding: 0.5rem;
    cursor: pointer;
}

.user-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.user-checkbox-list label {
    display: block;
    padding: 0.5rem;
    cursor: pointer;
}

.user-checkbox-list label:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .notification-filters {
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 80px;
    }
    
    .notifications-list {
        max-height: 60vh;
    }
}


.bulk-email-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.user-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.modal {
    overflow-y: auto;
}

.modal-content {
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* Správa uživatelů */
.user-management-content {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.user-management-section {
    margin-bottom: 2rem;
}

.user-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.user-info {
    flex: 1;
}

.user-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.user-info span {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.user-stats {
    color: #000;
    font-weight: 600;
}

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

.user-actions button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.btn-approve {
    background: #10b981;
    color: white;
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-edit {
    background: #f59e0b;
    color: white;
}

/* Admin menu */
.admin-menu-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-menu-btn {
    padding: 1rem;
    background: #f0f0f0;
    border: 2px solid #000;
    color: #000000;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.admin-menu-btn:hover {
    background: #000;
    color: white;
}

/* Tip calculator */
.tip-calculator {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.tip-calculator input {
    margin: 0.5rem 0;
}

.btn-calculate {
    background: #10b981;
    color: white;
    margin-top: 0.5rem;
}

.tip-result {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #10b981;
}

/* User card */
.user-card-content {
    max-width: 600px;
}

.user-card-info {
    text-align: center;
    padding: 2rem;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.user-stats-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-box {
    background: white;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

/* Historie */
.stats-history, .brigade-history {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Sekce popisy */
.section-description {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Badge pro plné brigády bez náhradníků */
.badge-full-green {
    background-color: #10b981;
    color: white;
    border: 1px solid #059669;
}



/* Responzivita pro nové prvky */
@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-actions {
        margin-top: 1rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .user-actions button {
        flex: 1;
        min-width: 45%;
    }
    
    .user-stats-display {
        grid-template-columns: 1fr;
    }
}

.badge-full-green {
    background-color: #10b981;
    color: white;
    border: 1px solid #059669;
}

/* Styly pro dokončené brigády */
.completed-brigade {
    opacity: 0.5;
    background: #f0f0f0 !important;
    cursor: default !important;
}

.completed-lock {
    position: absolute;
    top: 25%;
    left: 44%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: 2px solid #374151;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    backdrop-filter: blur(10px);
    animation: lockPulse 3s ease-in-out infinite;
}

.completed-lock::before {
    content: "🔒";
    font-size: 0.9rem;
    filter: brightness(1.2);
}

@keyframes lockPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

/* Alternativní modernější design s ikonou */
.completed-lock.modern {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
}

.completed-lock.modern::before {
    content: "🔒";
}

.badge-completed {
    background: #6b7280;
    color: white;
}

/* Styly pro statistiky - srovnané boxy */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.stat-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.stat-email {
    color: #666;
    font-size: 0.9rem;
}

.stat-values {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.stat-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-edit-stats {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-edit-stats:hover {
    background: #d97706;
}

/* Vylepšení pro výběr účastníků */
.participant-checkbox {
    display: block;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
}

.participant-checkbox:hover {
    background: #e0e0e0;
}

.participant-checkbox input {
    margin-right: 0.75rem;
}

.completion-info {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.btn-complete {
    background: #10b981;
    color: white;
    border: 2px solid #10b981;
}

.btn-complete:hover {
    background: #059669;
    border-color: #059669;
}

/* Styly pro vylepšené uzavírání brigád */
.brigade-completion-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.completion-tabs {
    margin-top: 1.5rem;
}

.tab-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #000;
    border-bottom-color: #000;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.participants-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.btn-select-all{
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    background: #77ff0096;
    color: #000000;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}
.btn-select-none{
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    background: #ff0000a8;
    color: #000000;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;

}

.btn-select-all:hover, .btn-select-none:hover {
    background: #e0e0e0;
}

.email-tag {
    font-size: 0.85rem;
    color: #666;
    margin-left: 0.5rem;
}

.hours-input-section {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.time-inputs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.time-inputs label {
    flex: 1;
}

.hours-calculated {
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.2rem;
}

.manual-hours {
    display: block;
    margin: 1rem 0;
}

.individual-hours-toggle {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

#individual-hours-inputs {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.individual-input {
    margin-bottom: 0.75rem;
}

.individual-input label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.individual-input input {
    width: 80px;
}

.tips-section {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.tip-distribution {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 6px;
}

.tip-distribution label {
    display: block;
    padding: 0.5rem;
    cursor: pointer;
}

.tip-distribution label:hover {
    background: #f0f0f0;
}

.tip-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

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

.tip-table th,
.tip-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tip-table th {
    background: #f0f0f0;
    font-weight: 600;
}

.tip-table tfoot th {
    border-top: 2px solid #000;
}

.completion-summary {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

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

.summary-table th {
    background: #e0e0e0;
    font-weight: 600;
}

.summary-table tfoot th {
    background: #333;
    color: white;
}

.summary-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #856404;
}

.completion-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.btn-prev, .btn-next {
    background: #f0f0f0;
    color: #000;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
}

.btn-prev:hover, .btn-next:hover {
    background: #e0e0e0;
}

.btn-complete {
    background: #10b981 !important;
    color: white !important;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-complete:hover {
    background: #059669 !important;
}

/* Sekce pro uzavírání brigád v detailu */
.brigade-completion-section {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #0ea5e9;
}

.brigade-completion-section p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.brigade-completion-section ul {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.8;
}

.btn-complete-large {
    width: 100%;
    padding: 1rem 2rem;
    background: #10b981;
    color: white;
    border: 2px solid #10b981;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-complete-large:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* Zajistí černý text na všech zařízeních */
.brigade-card {
    color: #000000 !important;
}

.brigade-title {
    color: #000000 !important;
}

.brigade-description {
    color: #333333 !important;
}

.info-item {
    color: #555555 !important;
}

/* Specifické pro mobilní zařízení */
@media (max-width: 768px) {
    .brigade-card {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .brigade-title {
        color: #000000 !important;
        font-weight: 700;
    }
    
    .brigade-description {
        color: #444444 !important;
    }
    
    .info-item {
        color: #666666 !important;
    }
    
    /* Zajistí viditelnost textu v modálních oknech */
    .modal-content {
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    .modal-content h1,
    .modal-content h2,
    .modal-content h3,
    .modal-content p {
        color: #000000 !important;
    }
    
    /* Oprava pro admin controls na mobilech */
    .admin-controls button {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }
}

/* Zajistí tmavý text v detailních kartách */
.brigade-detail-content {
    color: #000000 !important;
}

.brigade-detail-content h1,
.brigade-detail-content h2,
.brigade-detail-content h3,
.brigade-detail-content p {
    color: #000000 !important;
}

.detail-label {
    color: #666666 !important;
}

.detail-value {
    color: #000000 !important;
    font-weight: 600;
}

/* FOOTER */
.app-footer {
    background: #000000;
    color: #ffffff;
    padding: 2rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-made-by {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.neon-name {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
    animation: subtleNeonPulse 3s ease-in-out infinite;
}

a.neon-name:hover {
    color: #ffffff;
    opacity: 0.85;
}

.footer-support {
    font-size: 0.85rem;
    color: #999999;
    margin: 0.25rem 0 0;
}

.footer-support a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-support a:hover {
    color: #cccccc;
}

@keyframes subtleNeonPulse {
    0%, 100% { 
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(255, 255, 255, 0.6),
            0 0 15px rgba(255, 255, 255, 0.4);
    }
    50% { 
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.9),
            0 0 15px rgba(255, 255, 255, 0.7),
            0 0 20px rgba(255, 255, 255, 0.5);
    }
}

.footer-copyright {
    font-size: 0.85rem;
    color: #999999;
    margin: 1rem 0;
}

.footer-privacy {
    font-size: 0.8rem;
    color: #888888;
    line-height: 1.6;
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.footer-privacy strong {
    color: #ffffff;
}

.footer-privacy a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-privacy a:hover {
    color: #cccccc;
}

/* Responzivita */
@media (max-width: 768px) {
    .app-footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .footer-privacy {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
}

/* GDPR Souhlas */
.gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gdpr-consent:hover {
    background: #f0f0f0;
    border-color: #000000;
}

.gdpr-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
}

.gdpr-consent span {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333333;
    text-align: left;
}

/* Mobilní úprava */
@media (max-width: 768px) {
    .gdpr-consent {
        padding: 0.75rem;
    }
    
    .gdpr-consent span {
        font-size: 0.8rem;
    }
}

/* Detail notifikace */
.notification-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.notification-detail-modal {
    max-width: 700px;
}

.notification-detail-content {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

/* Detail notifikace - VYLEPŠENÝ */
.notification-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.notification-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notification-detail-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f0f0f0;
    border-radius: 8px;
}

.notification-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.notification-status-badge.sent {
    background: #d1fae5;
    color: #065f46;
}

.notification-status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

.notification-detail-content {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.8;
    border: 2px solid #e0e0e0;
}

.notification-detail-content p {
    margin-bottom: 1rem;
    color: #333333;
}

.notification-detail-content strong {
    color: #000000;
    font-weight: 600;
}

.notification-detail-content h2,
.notification-detail-content h3 {
    color: #000000;
    margin: 1rem 0 0.5rem 0;
}

.notification-detail-content div {
    margin: 0.5rem 0;
}

.btn-close-notification {
    width: 100%;
    padding: 1rem;
    background: #000000;
    color: white;
    border: 2px solid #000000;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-close-notification:hover {
    background: #ffffff;
    color: #000000;
}

/* Responzivita */
@media (max-width: 768px) {
    .notification-detail-modal {
        max-width: 95%;
        margin: 2rem auto;
    }
    
    .notification-detail-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .notification-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* === OPRAVY PRO MOBIL === */

/* 1. Zkrácený popis v kartě s "více" */
.brigade-description {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
}

.read-more {
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.25rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* 2. ČERNÝ KŘÍŽEK NA ZAVŘENÍ - VŽDY */
.close {
    color: #000000 !important;
    font-weight: bold;
    opacity: 1;
}

.close:hover {
    color: #333333 !important;
}

/* 3. TLAČÍTKA V KARTÁCH - OPRAVA PRO MOBIL */
@media (max-width: 768px) {
    /* Oprava tlačítek v kartách */
    .brigade-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .brigade-actions button {
        width: 100%;
        margin: 0;
        padding: 0.875rem 1rem;
    }
    
    /* Admin controls - uvnitř karty */
    .admin-controls {
        position: static;
        margin-bottom: 1rem;
        justify-content: space-around;
        width: 100%;
    }
    
    .admin-controls button {
        flex: 1;
    }
    
    /* Černý text a kontrasty */
    .modal-content {
        color: #000000 !important;
    }
    
    .modal-content h1,
    .modal-content h2,
    .modal-content h3 {
        color: #000000 !important;
    }
    
    /* Dropdown menu - černý text */
    .dropdown-menu {
        background: #ffffff;
        border: 2px solid #000000;
    }
    
    .dropdown-menu a {
        color: #000000 !important;
    }
}

/* 4. UZAVÍRÁNÍ BRIGÁD NA MOBILU - VYLEPŠENÍ */
@media (max-width: 768px) {
    .brigade-completion-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        overflow-y: auto;
    }
    
    /* Taby - vertikální na mobilu */
    .tab-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        background: #f9f9f9;
    }
    
    .tab-btn.active {
        background: #000000;
        color: white;
        border-color: #000000;
    }
    
    /* Checkboxy - větší */
    .participant-checkbox {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .participant-checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
    
    /* Email tag - skrýt na mobilu */
    .email-tag {
        display: none;
    }
    
    /* Tlačítka select all/none */
    .btn-select-all,
    .btn-select-none {
        width: 48%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Participants checkboxes - bez max výšky na mobilu */
    .participants-checkboxes {
        max-height: none;
        padding: 0.5rem;
    }
    
    /* Time inputs - vertikálně */
    .time-inputs {
        flex-direction: column;
        gap: 1rem;
    }
    
    .time-inputs label {
        width: 100%;
    }
    
    /* Individual hours inputs */
    .individual-input {
        padding: 0.75rem;
        background: #f9f9f9;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .individual-input input {
        width: 100%;
    }
    
    /* Tip table - responzivní */
    .tip-table {
        font-size: 0.85rem;
    }
    
    .tip-table th,
    .tip-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Summary table */
    .summary-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }
    
    /* Completion buttons - stack vertikálně */
    .completion-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .completion-buttons button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .btn-prev,
    .btn-next,
    .btn-complete {
        order: 0;
    }
    
    /* Uzavřeno badge */
    .completed-lock {
        top: 50%;
        left: 50%;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Hours calculated - větší */
    .hours-calculated {
        font-size: 1.1rem;
        padding: 1.25rem;
    }
    
    /* Tip preview */
    .tip-preview {
        overflow-x: auto;
    }
    
    /* Custom tips inputs */
    .custom-tip-input {
        width: 100%;
    }
    
    /* Completion summary */
    .completion-summary {
        padding: 0.75rem;
    }
    
    .summary-warning {
        font-size: 0.9rem;
        padding: 1rem;
        line-height: 1.6;
    }
}

/* 5. NOTIFIKACE - ČERNÝ TEXT A KŘÍŽEK */
.notifications-history {
    color: #000000;
}

.notifications-history .close {
    color: #000000 !important;
}

.notification-item {
    color: #000000;
}

.notification-header strong {
    color: #000000;
}

.notification-detail-modal .close {
    color: #000000 !important;
}

/* 6. DETAIL BRIGÁDY NA MOBILU */
@media (max-width: 768px) {
    .brigade-detail-modal .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .brigade-detail-header {
        border-radius: 0;
        padding: 1.5rem;
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .detail-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .detail-actions button {
        width: 100%;
    }
    
    .drinks-grid {
        grid-template-columns: 1fr;
    }
}

/* 7. USER MANAGEMENT NA MOBILU */
@media (max-width: 768px) {
    .user-management-content {
        width: 100%;
        height: 100%;
        padding: 1rem;
    }
    
    .user-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .user-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .user-actions button {
        flex: 1;
        min-width: 45%;
    }
}

/* 8. ADMIN MENU NA MOBILU - ČERNÝ KŘÍŽEK */
@media (max-width: 768px) {
    .admin-menu-content .close {
        color: #000000 !important;
        font-size: 2.5rem;
        font-weight: bold;
    }
}

/* 9. ZAJISTIT VIDITELNOST NA SVĚTLÉM POZADÍ */
.modal {
    background: rgba(0,0,0,0.85);
}

.modal-content {
    background: #ffffff;
}

/* 10. BRIGADE CARD - FIX PRO MOBIL */
@media (max-width: 768px) {
    .brigade-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .brigade-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .brigade-title {
        font-size: 1.1rem;
        width: 100%;
    }
    
    .brigade-badge {
        align-self: flex-start;
    }
    
    .brigade-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
}

/* Odkaz "více" v popisu brigády */
.brigade-description .read-more {
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.brigade-description .read-more:hover {
    text-decoration: underline;
}

/* === FINÁLNÍ OPRAVY PRO MOBIL === */

/* 1. ČERNÝ KŘÍŽEK - VŠUDE A VŽDY VIDITELNÝ */
.close,
.modal .close,
.modal-content .close {
    color: #000000 !important;
    font-weight: bold !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.close:hover {
    color: #333333 !important;
    background: rgba(255, 255, 255, 1) !important;
}

/* 2. TLAČÍTKA V KARTĚ - OPRAVA PRO MOBIL */
@media (max-width: 768px) {
    /* Karta brigády - dostatek místa pro tlačítka */
    .brigade-card {
        padding: 1rem 1rem 1.5rem 1rem !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Admin controls - nad obsahem karty */
   
    

    
    /* Zajistit že tlačítka nejsou překrytá */
    .brigade-card::after {
        content: '';
        display: block;
        height: 10px;
        clear: both;
    }
    
    /* Popis - menší aby bylo víc místa */
    .brigade-description {
        max-height: 3em !important;
        overflow: hidden;
        margin-bottom: 0.75rem !important;
    }
    
    /* Info položky - kompaktnější */
    .brigade-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
        padding-top: 0.75rem !important;
    }
    
    .info-item {
        font-size: 0.9rem !important;
        padding: 0.25rem 0;
    }
    
    /* Header karty - kompaktnější */
    .brigade-header {
        margin-bottom: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .brigade-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
}

/* 3. MODÁLNÍ OKNA - ČERNÝ KŘÍŽEK A LEPŠÍ VIDITELNOST */
@media (max-width: 768px) {
    .modal {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .modal-content {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 3rem 1rem 1rem 1rem !important;
    }
    
    .modal-content .close {
        top: 10px !important;
        right: 10px !important;
        font-size: 2rem !important;
    }
    
    /* Všechny nadpisy v modálech černé */
    .modal-content h1,
    .modal-content h2,
    .modal-content h3,
    .modal-content h4 {
        color: #000000 !important;
    }
    
    /* Dropdown menu - černý text */
    .dropdown-menu {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
    }
    
    .dropdown-menu a {
        color: #000000 !important;
        font-weight: 500 !important;
    }
    
    .dropdown-menu a:hover {
        background: #f0f0f0 !important;
    }
}

/* 4. UZAVÍRÁNÍ BRIGÁD - ČERNÝ KŘÍŽEK */
@media (max-width: 768px) {
    .brigade-completion-content .close,
    .brigade-detail-modal .close,
    .user-management-modal .close,
    .notifications-history .close,
    .bulk-email-content .close {
        color: #000000 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
}

/* 5. ZAJISTIT ŽE KARTA MÁ DOSTATEK MÍSTA */
@media (max-width: 768px) {
    .brigades-list-inner {
        padding: 1rem 0.5rem !important;
        gap: 1.5rem !important;
    }
    

}

/* 6. COMPLETED LOCK - SPRÁVNÁ POZICE */
@media (max-width: 768px) {
    .completed-lock {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
    }
}

/* 7. EXTRA PADDING NA KONCI KARTY PRO JISTOTU */
@media (max-width: 768px) {
    .brigade-card {
        padding-bottom: 2rem !important;
    }
    
    .brigade-actions {
        padding-bottom: 0.5rem !important;
    }
}

/* === FINÁLNÍ VYLEPŠENÍ === */

/* 1. LED LOGO V POZADÍ - SPRÁVNÉ UMÍSTĚNÍ */
#loginScreen::before, 
#registerScreen::before {
    content: '(M)';
    position: absolute;
    
    /* ZMĚNA - umístění zdola nahoru */
    bottom: 0 !important;
    top: auto !important;
    
    left: 50%;
    transform: translateX(-50%) !important;
    
    /* Výška od spodku obrazovky po spodek karty */
    font-size: 35vh !important;
    
    font-weight: bold;
    color: #ffffff;
    pointer-events: none;
    z-index: 0;
    
    /* Neon glow efekt */
    filter: blur(5px) brightness(1.0);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4),
        0 0 80px rgba(255, 255, 255, 0.2);

    animation: neonPulse 4s infinite ease-in-out;
    
    /* Zajistit že logo je vždy viditelné */
    display: block !important;
    opacity: 0.7;
}

/* Responzivní úpravy pro logo */
@media (max-width: 768px) {
    #loginScreen::before, 
    #registerScreen::before {
        font-size: 30vh !important;
    }
}

@media (max-width: 480px) {
    #loginScreen::before, 
    #registerScreen::before {
        font-size: 25vh !important;
    }
}

/* Zajistit že přihlašovací karta je vždy nad logem */
.login-container {
    position: relative;
    z-index: 10 !important;
}

/* 2. POPIS V DETAILU BRIGÁDY - VŽDY BÍLÝ */
.brigade-detail-body {
    background: #ffffff !important;
    color: #000000 !important;
}

.brigade-detail-body p,
.brigade-detail-body .detail-section p,
.brigade-detail-body .detail-section {
    color: #ffffff !important;
    background: transparent !important;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3);
}

/* Popis sekce - černý text na bílém */
.detail-section h3 {
    color: #000000 !important;
    background: transparent !important;
}

.detail-section p {
    color: #333333 !important;
}

/* Info grid - bílé pozadí */
.detail-info-grid {
    background: #f9f9f9 !important;
}

.detail-label {
    color: #666666 !important;
}

.detail-value {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Drinks cards - bílé pozadí s černým textem */
.drink-card {
    background: #f0f9ff !important;
    color: #000000 !important;
}

.drink-card h4 {
    color: #0369a1 !important;
}

.drink-ingredients,
.drink-instructions {
    color: #333333 !important;
}

/* Zajistit že všechen text v detailu je černý */
.brigade-detail-modal .modal-content,
.brigade-detail-content,
.brigade-detail-body,
.detail-section,
.detail-info-grid,
.detail-actions {
    color: #000000 !important;
}

.brigade-detail-modal .modal-content * {
    color: inherit !important;
}

/* Header má zůstat s gradientem ale bílým textem */
.brigade-detail-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%) !important;
    color: #ffffff !important;
}

.brigade-detail-header h1,
.brigade-detail-header * {
    color: #ffffff !important;
}

/* 3. MOBILNÍ VERZE - DETAIL BRIGÁDY */
@media (max-width: 768px) {
    .brigade-detail-modal .modal-content {
        background: #ffffff !important;
    }
    
    .brigade-detail-body {
        padding: 1.5rem 1rem !important;
        background: #ffffff !important;
    }
    
    /* Všechen text černý */
    .brigade-detail-body,
    .brigade-detail-body p,
    .brigade-detail-body div,
    .brigade-detail-body span,
    .detail-section,
    .detail-section p,
    .detail-label,
    .detail-value {
        color: #000000 !important;
    }
    
    /* Jen header bílý */
    .brigade-detail-header,
    .brigade-detail-header h1,
    .brigade-detail-header * {
        color: #ffffff !important;
    }
}

/* 4. COMPLETION SECTION - BÍLÉ POZADÍ */
.brigade-completion-section {
    background: #f0f9ff !important;
    color: #000000 !important;
}

.brigade-completion-section p,
.brigade-completion-section ul,
.brigade-completion-section li {
    color: #000000 !important;
}

/* === DETAIL BRIGÁDY - BÍLÝ TEXT S NEONEM === */

/* 1. CELÝ DETAIL - TMAVÉ POZADÍ, BÍLÝ TEXT */
.brigade-detail-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: #ffffff !important;
}

.brigade-detail-body {
    background: transparent !important;
    color: #ffffff !important;
    padding: 2rem;
}

/* Všechen text v detailu BÍLÝ s neonem */
.brigade-detail-body *,
.detail-section,
.detail-section p,
.detail-section h3,
.detail-section div,
.detail-label,
.detail-value {
    color: #ffffff !important;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.2);
}

/* Nadpisy v detailu - silnější neon */
.detail-section h3 {
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* Info grid - tmavší pozadí */
.detail-info-grid {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.3);
}

.detail-value {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
}

/* Header - zůstává jak je */
.brigade-detail-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%) !important;
    color: #ffffff !important;
}

.brigade-detail-header h1,
.brigade-detail-header * {
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6);
}

/* Drink cards - tmavé s bílým textem a neonem */
.drinks-grid {
    margin-top: 1rem;
}

.drink-card {
    
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.drink-card h4 {
    color: #ffffff !important;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.7),
        0 0 15px rgba(255, 255, 255, 0.5);
}

.drink-ingredients,
.drink-instructions {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.3);
}

.ingredient {
    color: #ffffff !important;
}

/* Completion section - tmavá s bílým textem */
.brigade-completion-section {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.brigade-completion-section p,
.brigade-completion-section ul,
.brigade-completion-section li,
.brigade-completion-section strong {
    color: #ffffff !important;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 10px rgba(255, 255, 255, 0.2);
}

/* Tlačítka v detailu */
.detail-actions button {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5);
}

.detail-actions button:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
}

/* Admin controls v detailu */
.detail-admin-controls button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.detail-admin-controls button:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.5);
}

/* 2. MOBILNÍ VERZE */
@media (max-width: 768px) {
    .brigade-detail-modal .modal-content {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    }
    
    .brigade-detail-body {
        padding: 1.5rem 1rem !important;
        background: transparent !important;
    }
    
    /* Všechen text BÍLÝ s neonem */
    .brigade-detail-body,
    .brigade-detail-body *,
    .detail-section,
    .detail-section *,
    .detail-label,
    .detail-value {
        color: #ffffff !important;
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.5),
            0 0 10px rgba(255, 255, 255, 0.3);
    }
    
    /* Header na mobilu */
    .brigade-detail-header {
        background: linear-gradient(135deg, #000000 0%, #333333 100%) !important;
        border-radius: 0 !important;
    }
    
    .brigade-detail-header h1,
    .brigade-detail-header * {
        color: #ffffff !important;
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6);
    }
    
    /* Tlačítka na mobilu */
    .detail-actions button {
        background: rgba(0, 0, 0, 0.6) !important;
        color: #ffffff !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        padding: 1rem !important;
    }
}

/* 3. KŘÍŽEK ZAVŘENÍ - BÍLÝ S NEONEM */
.brigade-detail-modal .close {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5);
}

.brigade-detail-modal .close:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5);
}

/* 4. SCROLLBAR V DETAILU - TMAVÝ */
.brigade-detail-modal .modal-content::-webkit-scrollbar {
    width: 10px;
}

.brigade-detail-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.brigade-detail-modal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.brigade-detail-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* === SPRÁVA RECEPTŮ - ČERNÝ TEXT NA BÍLÉM === */

/* Správa drinků má bílé pozadí a černý text */
.drinks-manager-modal .modal-content,
.drinks-manager-content {
    background: #ffffff !important;
    color: #000000 !important;
}

.drinks-manager-modal *,
.drinks-manager-content * {
    color: #000000 !important;
    text-shadow: none !important;
}

.drinks-manager-modal h2,
.drinks-manager-modal h3,
.drinks-manager-modal h4 {
    color: #000000 !important;
}

.drink-manager-card {
    background: #f9f9f9 !important;
    border: 2px solid #e0e0e0 !important;
    color: #000000 !important;
}

.drink-manager-card h3,
.drink-manager-card p,
.drink-manager-card div,
.drink-manager-card ul,
.drink-manager-card li {
    color: #000000 !important;
    text-shadow: none !important;
}

.drink-header h3 {
    color: #000000 !important;
}

.drink-ingredients,
.drink-instructions {
    color: #333333 !important;
}

.drinks-checklist {
    background: #f9f9f9 !important;
    border: 2px solid #e0e0e0 !important;
}

.drink-checkbox,
.drink-checkbox span {
    color: #000000 !important;
}

/* Tlačítka ve správě receptů */
.add-drink-btn {
    background: #000 !important;
    color: white !important;
    border: 2px solid #000 !important;
}

.drink-actions button {
    background: white !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
}

/* Formulář pro přidání drinku */
.drinks-manager-modal input,
.drinks-manager-modal textarea,
.drinks-manager-modal select {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.drinks-manager-modal label {
    color: #000000 !important;
}

/* Křížek ve správě receptů - černý */
.drinks-manager-modal .close {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #000000 !important;
    text-shadow: none !important;
}

.drinks-manager-modal .close:hover {
    background: rgba(255, 255, 255, 1) !important;
}

/* === DETAIL BRIGÁDY VS SPRÁVA RECEPTŮ === */

/* Detail brigády - BÍLÝ TEXT na tmavém */
.brigade-detail-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

.brigade-detail-modal *:not(.close) {
    color: #ffffff !important;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3);
}

/* Drink cards V DETAILU brigády - bílý text */
.brigade-detail-modal .drink-card,
.brigade-detail-modal .drink-card *,
.brigade-detail-modal .drink-ingredients,
.brigade-detail-modal .drink-instructions {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Drink cards VE SPRÁVĚ - černý text */
.drinks-manager-modal .drink-card,
.drinks-manager-modal .drink-card * {
    color: #000000 !important;
    background: #f9f9f9 !important;
    text-shadow: none !important;
}

/* MOBILNÍ VERZE */
@media (max-width: 768px) {
    /* Správa receptů na mobilu - černý text */
    .drinks-manager-modal .modal-content {
        background: #ffffff !important;
    }
    
    .drinks-manager-modal * {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    /* Detail brigády na mobilu - bílý text */
    .brigade-detail-modal .modal-content {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    }
    
    .brigade-detail-modal *:not(.close) {
        color: #ffffff !important;
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.5),
            0 0 10px rgba(255, 255, 255, 0.3);
    }
}

/* Filtrovací tlačítka pro brigády */
.section-header-with-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-with-filters h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.brigade-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f0f0f0;
    color: #000000;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.admin-only {
    display: none !important;
}

/* Responzivita */
@media (max-width: 768px) {
    .section-header-with-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brigade-filters {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 100px;
    }
}

