
.progress-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Enhanced progress bar styles */
.progress-track {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(0, 0, 0, 0.15);
}

.progress-bar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Tips animation styles */
.tip-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}

.tip-container.active {
    opacity: 1;
    transform: translateY(0);
}

.tip-bubble {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Moderní animace načítání s CSS proměnnými */
@property --progress {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

.tip-loading-circle {
    --size:24px; --thickness:4px; --fill:hsl(0, 0%, 89%); --track:hsl(0, 0%, 100%);
    position: absolute;
    top: 16px;
    right: 16px;
    width: var(--size, 24px);
    height: var(--size, 24px);
    aspect-ratio: 1;
    border-radius:50%;
    padding:var(--thickness);
    background:
        conic-gradient(var(--fill) calc(var(--progress)*1turn), var(--track) 0) border-box;
    background-clip: padding-box, border-box;
    transition: --progress 0.1s linear;
}

/* Nekonečný spinner pro indeterministic stav */
.tip-loading-circle.indeterminate {
    background: conic-gradient(
        from 0turn,
        var(--fill, hsl(0, 0%, 62%)) 0 12%, #0000 12% 37%,
        var(--fill, hsl(0, 0%, 62%)) 37% 62%, #0000 62% 87%,
        var(--fill, hsl(0, 0%, 62%)) 87% 100%
    );
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

/* Respekt k OS nastavení */
@media (prefers-reduced-motion: reduce) {
    .tip-loading-circle.indeterminate {
        animation-duration: 2.5s;
    }
    .tip-loading-circle {
        transition-duration: 0.35s;
    }
}

@media (min-width: 1024px) {
    .hr-symbol {
        background-image: url('/assets/hr-symbol.svg');
        background-size: calc(556px * 1.3) calc(608px * 1.3);
        background-position: calc(100% + 200px) -250px;
        background-repeat: no-repeat;
    }
}

/* CSS-only dialog styles */
#terms-dialog {
    display: none;
}

#terms-dialog:target {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

#terms-dialog:target > div {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close dialog when clicking on backdrop */
#terms-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Improved accessibility */
#terms-dialog:focus-within {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* CSS-only tooltip styles */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    color: #9ca3af;
    cursor: help;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover {
    color: #6b7280;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltip arrow */
.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Responsive tooltip for smaller screens */
@media (max-width: 640px) {
    .tooltip-content {
        white-space: normal;
        max-width: 200px;
        left: auto;
        right: 0;
        transform: translateY(-8px);
    }
    
    .tooltip-content::after {
        left: auto;
        right: 12px;
        transform: none;
    }
}

/* Dropzone active state styles */
#dropzone[data-drag-active="true"] {
    border-color: #f97316 !important;
    background-color: rgba(249, 115, 22, 0.1) !important;
}