
body {
    background-color: lightgray;
}

.component__demand-card {
    margin-bottom: 1em;
}

.component__demand-card .table-info > tbody > tr > th {
    text-align: right;
}

.facebook-btn {
    display: inline-block;
    background-color: #3b5998;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-facebook {
    background-color: #1a77f2;
    color: white;
    text-decoration: none;
}

.btn-facebook:hover {
    background-color: #2d4373;
    color: white;
}

.major-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.2s;
}

.major-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

:root{
    /* Bootstrap color aliases - mapování na OnlyFitness design systém */
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-secondary: #64748b;
    --bs-secondary-rgb: 100, 116, 139;
    --bs-success: #10b981;
    --bs-success-rgb: 16, 185, 129;
    --bs-danger: #dc2626;
    --bs-danger-rgb: 220, 38, 38;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-info: #06b6d4;
    --bs-info-rgb: 6, 182, 212;
    --bs-light: #f1f4f9;
    --bs-light-rgb: 241, 244, 249;
    --bs-dark: #0f172a;
    --bs-dark-rgb: 15, 23, 42;

    --water-primary: #22c3ee;
    --water-primary-weak:#c8f3ff;
    --water-bg: #f7fafc;
    --water-card: #ffffff;
    --water-text: #0f172a;
    --water-muted: #64748b;
    --water-line:#e5e7eb;
    --water-shadow: 0 10px 28px rgba(2, 8, 23, .08);
    --water-radius: 14px;
}

/* Bootstrap override - použití OnlyFitness barev */
.btn-primary,
.bg-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.btn-outline-primary:hover {
    color: #FFF!important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.badge.bg-success {
    background-color: var(--bs-success) !important;
    color: #fff !important;
}

.badge.bg-danger {
    background-color: var(--bs-danger) !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: var(--bs-warning) !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: var(--bs-info) !important;
    color: #fff !important;
}

/* Sticky column pro tabulky - fixed sloupec vpravo */
.sticky-column {
    position: sticky !important;
    right: 0 !important;
    background: #fff !important;
    z-index: 10 !important;
    background-clip: padding-box !important;
    border-left: 1px solid #dee2e6 !important;
}

/* Shadow efekt vlevo */
.sticky-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
}

.table-light .sticky-column {
    background: var(--bs-light, #f8f9fa) !important;
}

tbody .sticky-column {
    background: #fff !important;
}

.table-hover tbody tr:hover .sticky-column {
    background: #f8f9fa !important;
}

/* Na menších obrazovkách zajisti, že sticky funguje */
@media (max-width: 768px) {
    .sticky-column {
        min-width: 90px;
    }
}

.water-tracker{
    width: auto;
    margin: 0 auto;
    background: var(--water-card);
    border-radius: var(--water-radius);
    box-shadow: var(--water-shadow);
    padding: 18px 18px 26px;
    border: 1px solid #eef2f7;
}

/* Header */
.water-tracker__title{
    display:flex; align-items:center; gap:12px;
    font-weight: 800; font-size: 32px; letter-spacing:.2px;
    margin: 4px 0 4px;
}
.water-tracker__title svg{ width:30px; height:30px; color: var(--water-primary); }

.water-tracker__subtitle{
    margin:0 0 18px;
    color: var(--water-muted);
    font-size: 15px;
}

/* Card header row */
.water-tracker__row{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; margin: 8px 0 8px;
}

.water-tracker__row-left{
    display:flex; align-items:center; gap:10px; font-weight:700;
}
.water-badge{
    width:28px; height:28px; display:grid; place-items:center;
    border-radius: 999px; background: #e8f7ff; color:#037aa1; font-size:14px;
    border: 1px solid #cfefff;
}

.water-reset-btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:8px 12px; font-weight:600; font-size:14px;
    background:#f3f6fb; border:1px solid #e5ebf5; color:#0f172a;
    border-radius:10px; cursor:pointer;
    transition: .15s ease;
}
.water-reset-btn:hover{ background:#e9eef7 }
.water-reset-btn svg{ width:16px; height:16px; }

/* Progress */
.water-progress{
    width:100%;
    height: 12px;
    background: #edf6fb;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}
.water-progress__bar{
    position:absolute; inset:0 0 0;
    background: linear-gradient(90deg, var(--water-primary) 0%, #2cd0ff 100%);
    transition: width 0.3s ease;
}
.water-progress__line{
    display:flex; justify-content:space-between; font-size:13px;
    color: var(--water-muted); margin-top:6px;
}

/* Cups row */
.water-cups{
    margin-top: 18px;
    display:flex; gap:16px; flex-wrap:wrap;
}
.water-cup{
    flex:1 1 100px; min-width: 92px; height: 110px;
    border: 2px solid #e7eff7;
    border-radius: 16px;
    background: #fbfdff;
    position:relative;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition:.15s ease;
    cursor: pointer;
}
.water-cup[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.water-cup[disabled]:hover {
    transform: none;
    box-shadow: none;
}
.water-cup[disabled] i {
    color: #9ca3af;
}
.water-cup:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(2,8,23,.06); }
.water-cup i {
    font-size: 24px;
    color: #22c3ee;
    margin-bottom: 8px;
}
.water-cup__label{
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
}

/* Summary */
.water-summary{
    margin-top: 16px; padding-top: 14px;
    border-top: 1px dashed var(--water-line);
    display:grid; grid-template-columns: repeat(2,1fr);
    text-align:center; gap: 10px;
}
.water-summary__num{
    font-size: 28px; font-weight: 800; color:#0ea5b5;
}
.water-summary__label{
    margin-top:2px; color: var(--water-muted); font-size: 13px;
}

/* Actions */
.water-actions{
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.water-action-btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:10px 16px; font-weight:600; font-size:14px;
    border-radius:10px; cursor:pointer;
    transition: .15s ease;
    border: none;
}
.water-action-btn--primary{
    background: var(--water-primary); color: white;
}
.water-action-btn--primary:hover{
    background: #1ba8d1;
}
.water-action-btn--secondary{
    background:#f3f6fb; border:1px solid #e5ebf5; color:#0f172a;
}
.water-action-btn--secondary:hover{
    background:#e9eef7;
}
.water-action-btn svg{ width:16px; height:16px; }

/* Small helpers */
.mono{ font-variant-numeric: tabular-nums; }

/* Loader Component Styles */
.loader-component {
    position: relative;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.loader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spinner-lg {
    width: 4rem;
    height: 4rem;
    border-width: 0.4em;
}

.loader-message {
    color: #6b7280;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 560px){
    .water-tracker__title{ font-size: 26px; }
    .water-cups{ gap: 10px; }
    .water-cup{ min-width: 80px; height: 80px; }
    .water-tracker{padding: 0}
    .water-tracker-inner{padding: 10px}
}

.day-dashboard {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 20px;
}

.day-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.day-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.day-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.nav-btn {
    background: #e0e7ff;
    color: #3730a3;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: #c7d2fe;
    color: #3730a3;
    transform: scale(1.05);
    text-decoration: none;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.day-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.card-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
}

.card-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-body {
    padding: 20px;
    min-height: 120px;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 20px 0;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.add-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.add-btn:hover {
    background: #059669;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.entry-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.entry-item:last-child {
    margin-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.entry-title {
    font-weight: 600;
    color: #374151;
}

.entry-time {
    font-size: 0.85rem;
    color: #6b7280;
}

.entry-details {
    font-size: 0.9rem;
    color: #6b7280;
}

.action-btn {
    background: #e0e7ff;
    color: #3730a3;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    text-decoration: none;
    margin-left: 5px;
}

.action-btn:hover {
    background: #c7d2fe;
    color: #3730a3;
    text-decoration: none;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #fecaca;
    color: #dc2626;
    text-decoration: none;
}

.upcoming-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin-top: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal list items */
.modal-list-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-list-item:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.modal-list-item:last-child {
    margin-bottom: 0;
}

.modal-item-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.modal-item-description {
    font-size: 0.9rem;
    color: #6b7280;
}

.modal-item-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    float: right;
}

@media (max-width: 768px) {
    .day-dashboard {
        padding: 10px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .day-header h1 {
        font-size: 1.8rem;
    }
}
.icon-card-header {
    font-size: 24px;
}
.entry-completed {
    background: #dcfce7;
}

.add-exercise-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px dashed #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 20px;
    text-align: center;
    color: #64748b;
}

.add-exercise-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #475569;
    transform: translateY(-2px);
}

.add-exercise-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Switch styling */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--of-primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--of-primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-label {
    font-weight: 500;
    color: #333;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-label i {
    font-size: 1.1rem;
    color: var(--of-primary);
}

@media (max-width: 768px) {
    input:checked + .slider:before {
        transform: translateX(21px);
    }
}
:root {
    --timeline-line: #dee2e6;
    --timeline-dot: #0d6efd;
    --timeline-dot-border: #ffffff;
}

/* Main timeline container */
.timeline {
    position: relative;
    padding: 2rem 0;
}

/* Left vertical line */
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--timeline-line);
    top: 0;
    bottom: 0;
    left: 1rem;
    z-index: 0;
}

/* Timeline item wrapper */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    margin-left: 1rem;
    padding-right: 1rem;
    /*display: flex;*/
    /*align-items: flex-start;*/
}

.timeline-item .timeline-content {
    margin-left: 1rem;
    margin-top: 1rem;
    margin-right: 1rem;
    width: 100%;
}

.timeline-item .timeline-date {
    margin-right: 1rem;
    margin-left: 1rem;
    text-align: left;
    min-width: 100px;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0.2rem;
    width: 16px;
    height: 16px;
    background-color: var(--timeline-dot);
    border: 3px solid var(--timeline-dot-border);
    border-radius: 50%;
    z-index: 2;
}

/* Content styling */
.timeline-content {
    background: white;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    position: relative;

}

/* Date styling */
.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        margin-left: 1rem;
        margin-bottom: 2rem;
        flex-direction: column;
        padding-right: 1rem;
    }

    .timeline-item .timeline-content {
        margin-left: 1rem;
        margin-top: 1rem;
        margin-right: 1rem;
    }

    .timeline-item .timeline-date {
        margin: 0 0 0.5rem 1rem;
    }

    .timeline-dot {
        left: -6px;
        top: 0.2rem;
    }
}