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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FFC72C 0%, #FFEB3B 50%, #FFC72C 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(218, 41, 28, 0.3);
    padding: 30px;
    border: 4px solid #DA291C;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 199, 44, 0.05) 10px,
        rgba(255, 199, 44, 0.05) 20px
    );
    pointer-events: none;
    z-index: 0;
}

.container > * {
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    min-height: 60px;
}

h1 .title-text {
    color: #DA291C;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #DA291C, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

h1 .emoji {
    font-size: 1.2em;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: initial;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #000000;
    font-weight: bold;
    font-size: 1.4rem;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.input-section, .results-section, .debug-section {
    margin-bottom: 30px;
}

/* PDF Upload Section Styles */
.upload-section {
    background: linear-gradient(135deg, #FFC72C, #FFEB3B);
    border: 3px solid #DA291C;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(218, 41, 28, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-section::before {
    content: '📄';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
}

.upload-section:hover {
    border-color: #DA291C;
    background: linear-gradient(135deg, #FFEB3B, #FFC72C);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(218, 41, 28, 0.3);
}

#pdfInput {
    margin: 10px 0;
    padding: 12px;
    border: 3px solid #DA291C;
    border-radius: 15px;
    background-color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

#pdfInput:focus {
    outline: none;
    border-color: #FFC72C;
    box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.3);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #666;
    font-weight: 600;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.divider::after {
    content: ' NEBO ';
    background: linear-gradient(135deg, #FFC72C, #FFEB3B);
    color: #DA291C;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #DA291C;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(218, 41, 28, 0.2);
}

.manual-input {
    background: linear-gradient(135deg, #FFC72C, #FFEB3B);
    border: 3px solid #DA291C;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(218, 41, 28, 0.2);
    position: relative;
    overflow: hidden;
}

.manual-input::before {
    content: '✏️';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
}

.status-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    min-height: 20px;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #DA291C;
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid #DA291C;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    resize: vertical;
    background: white;
    box-shadow: inset 0 3px 8px rgba(218, 41, 28, 0.1);
    transition: all 0.3s ease;
    color: #333;
    letter-spacing: 0.5px;
}

textarea:focus {
    outline: none;
    border-color: #FFC72C;
    box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.3), inset 0 3px 8px rgba(218, 41, 28, 0.1);
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #DA291C, #FF6B35);
    color: white;
    border: 3px solid #B71C1C;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(218, 41, 28, 0.3);
    position: relative;
    overflow: hidden;
}

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 {
    background: linear-gradient(135deg, #FF6B35, #DA291C);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(218, 41, 28, 0.4);
}

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

/* Back to top button */
.back-to-top-btn {
    background: linear-gradient(135deg, #FFC72C, #FFEB3B) !important;
    color: #DA291C !important;
    border: 3px solid #DA291C !important;
    margin-top: 20px;
    font-size: 16px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding: 12px 20px !important;
    width: auto !important;
    display: inline-block !important;
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #FFEB3B, #FFC72C) !important;
    transform: translateY(-2px) !important;
}

.copy-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.copy-btn {
    flex: 1;
    background: linear-gradient(135deg, #FFC72C, #FFEB3B);
    color: #DA291C;
    border: 2px solid #DA291C;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #FFEB3B, #FFC72C);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(218, 41, 28, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

button:disabled:hover {
    background-color: #95a5a6 !important;
}

#resultsContainer {
    border: 3px solid #DA291C;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    box-shadow: 0 6px 15px rgba(218, 41, 28, 0.2);
    position: relative;
}

#resultsContainer::before {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

#resultsContainer:empty {
    display: none;
}

.warnings {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
    color: #8a6d3b;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 2px solid #FFC72C;
    background: white;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border-radius: 10px;
    height: 60px; /* Fixní výška pro všechny řádky */
    overflow: hidden; /* Zabránění přetékání obsahu */
}

.result-row:hover {
    background: #FFF8E1;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(218, 41, 28, 0.1);
}

.time-block {
    display: flex;
    align-items: center;
    gap: 34px;
    min-width: 275px;
}

.time-range {
    font-weight: bold;
    color: #DA291C;
    font-size: 1.1em;
    min-width: 120px;
}

.original-hours {
    color: #666;
    font-size: 0.95em;
    margin-right: 10px;
}

.amount {
    color: #DA291C;
    font-size: 0.95em;
    font-weight: bold;
}

.pause-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pause-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFF8E1;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #FFC72C;
    white-space: nowrap; /* Zabránění zalamování textu */
    flex-shrink: 0; /* Zabránění smršťování */
}

.pause-label {
    color: #DA291C;
    font-weight: 500;
    font-size: 0.9em;
}

.pause-input {
    width: 70px !important;
    padding: 5px 10px !important;
    border: 2px solid #DA291C !important;
    border-radius: 8px !important;
    text-align: center;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    font-weight: bold;
    -moz-appearance: textfield;
}

/* Stylování šipek pro Chrome/Safari/Edge */
.pause-input::-webkit-outer-spin-button,
.pause-input::-webkit-inner-spin-button {
    opacity: 1;
    background: #FFF8E1;
    border-left: 2px solid #FFC72C;
    margin-right: 2px;
    cursor: pointer;
}

/* Stylování šipek pro Firefox */
.pause-input[type=number] {
    -moz-appearance: textfield;
}

.pause-input:hover::-webkit-outer-spin-button,
.pause-input:hover::-webkit-inner-spin-button {
    background: #FFECB3;
}

.pause-input:focus {
    outline: none;
    border-color: #FFC72C !important;
    box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.3);
    transform: scale(1.05);
}

.final-result {
    color: #DA291C;
    font-weight: bold;
    min-width: 200px;
    text-align: right;
    background: #FFF8E1;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #FFC72C;
    white-space: nowrap;
}

/* Styly pro celkový součet */
.total-summary {
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border: 3px solid #DA291C;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 6px 15px rgba(218, 41, 28, 0.2);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #FFC72C;
}

.total-row:last-child {
    border-bottom: none;
}

.total-label {
    color: #666;
    font-weight: 500;
}

.total-value {
    font-weight: bold;
    color: #DA291C;
    font-size: 1.1em;
}

.final-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #DA291C !important;
}

.final-total .total-label,
.final-total .total-value {
    font-size: 1.2em;
    font-weight: bold;
}

.result-row:last-child {
    border-bottom: none;
}

/* Speciální čára mezi 13-14 a 14-15 */
.result-row[data-hour="13"] {
    border-bottom: 3px solid #DA291C !important;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

#totalHours {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #DA291C;
    padding: 15px;
    background: linear-gradient(135deg, #FFC72C, #FFEB3B);
    border: 3px solid #DA291C;
    border-radius: 15px;
    margin-top: 15px;
    box-shadow: 0 6px 15px rgba(218, 41, 28, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#debugOutput {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    padding: 15px;
    border: 3px solid #DA291C;
    border-radius: 15px;
    overflow-x: auto;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 6px 15px rgba(218, 41, 28, 0.2);
}

.debug-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    button {
        padding: 10px;
    }
    
    .upload-section, .manual-input {
        padding: 15px;
    }
}

/* McDonald's Instructions Section Styles */
.mcdonalds-instructions {
    background: #FFC72C;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(255, 199, 44, 0.3);
    overflow: hidden;
    border: 3px solid #DA291C;
}

.mcdonalds-header {
    background: #DA291C;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.mcdonalds-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mcdonalds-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mcdonalds-content {
    padding: 25px;
    background: #FFC72C;
}

.mcdonalds-step {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #DA291C;
}

.step-number {
    background: #DA291C;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.mcdonalds-rules {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mcdonalds-rules h3 {
    color: #DA291C;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    margin: 12px 0;
    padding: 12px;
    background: #FFF8E1;
    border-radius: 8px;
    border-left: 4px solid #FFC72C;
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 199, 44, 0.4);
    background: #FFECB3;
}

.rule-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.lukas-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.rule-item:hover .lukas-icon {
    transform: rotate(360deg);
}

.rule-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.mcdonalds-alternative {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    color: #666;
    font-style: italic;
    border: 2px dashed #DA291C;
}

/* Responsive adjustments for McDonald's instructions */
@media (max-width: 600px) {
    .mcdonalds-instructions {
        margin: 20px 0;
    }
    
    .mcdonalds-header {
        padding: 15px;
    }
    
    .mcdonalds-header h2 {
        font-size: 1.3rem;
    }
    
    .mcdonalds-content {
        padding: 20px;
    }
    
    .mcdonalds-step {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .mcdonalds-rules {
        padding: 15px;
    }
    
    .rule-item {
        padding: 10px;
        font-size: 0.95rem;
    }
} 
.changes {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
    color: #333;
    letter-spacing: 0.5px;
}