* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 50%, #0097b2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(46, 213, 115, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h1 {
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 50%, #2ed573 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 25px 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.overview-section {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 168, 204, 0.15);
}

.overview-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.overview-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.overview-item:nth-child(1) {
    border-left: 4px solid #ffa500;
}

.overview-item:nth-child(1):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.25);
    background: rgba(255, 165, 0, 0.08);
}

.overview-item:nth-child(2) {
    border-left: 4px solid #2ed573;
}

.overview-item:nth-child(2):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.25);
    background: rgba(46, 213, 115, 0.08);
}

.overview-item h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.overview-item:nth-child(1) h3 {
    color: #ffa500;
}

.overview-item:nth-child(2) h3 {
    color: #2ed573;
}

.overview-item .count {
    font-size: 1.8em;
    font-weight: 700;
}

.overview-item:nth-child(1) .count {
    color: #ffa500;
}

.overview-item:nth-child(2) .count {
    color: #2ed573;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.user-card {
    color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Jednotná barva pro všechny karty */
.user-card {
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
}

.user-card:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    filter: brightness(1.1);
}

.user-card:active {
    transform: translateY(-2px) scale(1);
}

.lukas-link {
    text-align: center;
    margin-top: 30px;
}

.lukas-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lukas-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.back-link {
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.back-link:hover {
    filter: brightness(1.1);
    text-decoration: underline;
}

.user-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 168, 204, 0.2);
}

.calendar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

.calendar-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-header {
    font-weight: 700;
    font-size: 1em;
    color: white;
    text-align: center;
    padding: 12px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.column-header:first-of-type {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.5) 0%, rgba(255, 140, 0, 0.5) 100%);
}

.column-header:last-of-type {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.5) 0%, rgba(0, 168, 204, 0.5) 100%);
}

.calendar-day {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 168, 204, 0.2);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-day.tuesday:hover:not(.disabled):not(.closed) {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.25);
}

.calendar-day.thursday:hover:not(.disabled):not(.closed) {
    border-color: #00a8cc;
    background: rgba(0, 168, 204, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.25);
}

.calendar-day.disabled {
    background: rgba(233, 236, 239, 0.6);
    color: #adb5bd;
    cursor: not-allowed;
    border-color: rgba(222, 226, 230, 0.5);
    opacity: 0.6;
}

.calendar-day.closed {
    background: rgba(108, 117, 125, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.calendar-day.closed.tuesday,
.calendar-day.closed.thursday {
    background: rgba(108, 117, 125, 0.5) !important;
    border-color: #6c757d !important;
}

.calendar-day .reservation-icon.closed-icon {
    color: #6c757d;
    font-size: 1.5em;
}

.calendar-day.tuesday:not(.closed) {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.08);
}

.calendar-day.thursday:not(.closed) {
    border-color: #00a8cc;
    background: rgba(0, 168, 204, 0.08);
}

.calendar-day.has-reservation {
    background: rgba(40, 167, 69, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.calendar-day.no-reservation {
    background: rgba(40, 167, 69, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.calendar-day .date {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #333;
}

.calendar-day .reservation-icon {
    font-size: 1.4em;
    font-weight: bold;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}

.calendar-day .reservation-icon.check {
    color: #28a745;
}

.calendar-day .reservation-icon.cross {
    color: #dc3545;
}

.calendar-day .reservation-icon .emoji {
    font-size: 1.2em;
    line-height: 1;
}

.calendar-day .order-summary {
    font-size: 0.75em;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

.users-management-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 168, 204, 0.2);
}

.add-user-form {
    margin-bottom: 30px;
    padding: 24px;
    background: rgba(0, 212, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.add-user-form h3 {
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.users-list-section {
    margin-top: 20px;
}

.users-list-section h3 {
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00a8cc 0%, #2ed573 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.users-management-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.user-management-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 168, 204, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-management-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 168, 204, 0.2);
}

.user-management-item.user-active {
    background: rgba(40, 167, 69, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.user-management-item.user-inactive {
    background: rgba(220, 53, 69, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.user-management-item .user-name {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #333;
}

.user-management-item .user-status-icon {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
}

.user-management-item.user-active .user-status-icon {
    color: #28a745;
}

.user-management-item.user-inactive .user-status-icon {
    color: #dc3545;
}

.reservation-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(0, 168, 204, 0.2);
}

.reservation-form.active {
    display: block;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.reservation-form h3 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 50%, #2ed573 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 168, 204, 0.3);
    border-radius: 8px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #00a8cc;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
    background: white;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #00a8cc 0%, #0097b2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
    filter: brightness(1.05);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
}

.overlay.active {
    display: block;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.info-text {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.orders-list {
    margin-top: 20px;
}

.order-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #00a8cc;
    box-shadow: 0 2px 8px rgba(0, 168, 204, 0.1);
}

.order-item h3 {
    background: linear-gradient(135deg, #00a8cc 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 600;
}

.order-item .totals {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.order-item .total {
    font-weight: 600;
    color: #333;
}

.order-item .detail-link {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(135deg, #00a8cc 0%, #2ed573 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.order-item .detail-link:hover {
    text-decoration: underline;
    filter: brightness(1.1);
}

.order-detail {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 168, 204, 0.2);
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 168, 204, 0.1);
}

.closed-days-section {
    margin-top: 40px;
    background: rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.closed-days-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.closed-day-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 193, 7, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2);
}

.closed-day-item button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
}

.closed-day-item button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .calendar {
        gap: 8px;
    }

    .calendar-column {
        min-width: 0;
    }

    .column-header {
        font-size: 0.9em;
        padding: 10px;
    }

    .calendar-day {
        padding: 10px 6px;
        height: 75px;
    }

    .calendar-day .date {
        font-size: 0.85em;
        margin-bottom: 6px;
    }

    .calendar-day .reservation-icon {
        font-size: 1.2em;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        border-radius: 16px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    .calendar {
        gap: 6px;
    }

    .calendar-day {
        padding: 8px 4px;
        height: 75px;
        border-radius: 10px;
    }

    .calendar-day .date {
        font-size: 0.8em;
    }

    .calendar-day .reservation-icon {
        font-size: 1.1em;
    }
}
