* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Site Header */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #e0e0e0;
    padding: 10px 0;
    min-height: 50px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -120px;
}

.header-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    min-width: 380px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

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

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.dropdown-text {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.dropdown-subtitle {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}

.dropdown-item:hover .dropdown-subtitle {
    opacity: 0.9;
}

.header-nav-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.1;
}

.header-nav-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(102, 126, 234, 0.45);
}

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

.header-nav-btn:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.4);
    outline-offset: 2px;
}


/* Tabs Container */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0;
}

.tab-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 25px;
}

.how-it-works-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #4b55c4;
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.how-it-works-inline-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
    transform: translateY(-1px);
}

.how-it-works-inline-btn:active {
    transform: translateY(0);
}

.how-it-works-icon {
    font-size: 18px;
    line-height: 1;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid rgba(102, 126, 234, 0.35);
    background: rgba(255, 255, 255, 0.72);
    color: #333;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: inset 0 -2px 6px rgba(102, 126, 234, 0.12);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.85);
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(102, 126, 234, 0.55);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    border-color: #667eea;
    border-width: 3px;
    opacity: 1;
    box-shadow: 0 -4px 14px rgba(102, 126, 234, 0.25);
    font-weight: 700;
}

.tab-content {
    display: none;
}

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

.calculator-title {
    color: #333;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calculator-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
}

.calculator-mode-pill {
    background: rgba(102, 126, 234, 0.12);
    color: #4a57d1;
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.calculator-title + .calculator-subtitle {
    margin-top: 10px;
}

/* Converter Styles */
.converter-main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.converter-section {
    max-width: 700px;
    margin: 0 auto;
}

.converter-inputs {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.converter-input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.converter-input-section label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.converter-input {
    width: 100%;
    padding: 18px;
    font-size: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.converter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.converter-arrow {
    font-size: 32px;
    color: #667eea;
    font-weight: bold;
    flex-shrink: 0;
}

.converter-rate-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.converter-rate-info p {
    margin: 0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}


/* Site Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section h2 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.footer-contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.footer-contact-link span {
    font-size: 16px;
}

.footer-note {
    color: #667eea !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
    font-style: italic;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.footer-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    flex: 0 1 auto;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.share-btn span {
    font-size: 16px;
}

.share-btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fbf 100%);
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.share-btn-facebook:hover {
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.share-btn-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

.share-btn-twitter:hover {
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.share-btn-copy {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.share-btn-copy:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.share-btn-copy.copied {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.share-btn-copy.copied::after {
    content: " ✓";
    margin-left: 4px;
}

/* Desktop/Web - бутоните в ред */
@media (min-width: 769px) {
    .share-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .share-btn {
        flex: 0 0 auto;
        min-width: auto;
    }
}

/* Mobile - бутоните вертикално */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Login Screen Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.login-box h2 {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.login-input-section {
    margin-bottom: 25px;
}

.login-input {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.login-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.login-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.login-input.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-btn {
    width: 100%;
    padding: 20px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
    font-weight: 600;
}

/* Layout контейнер - центриране и три колони (симетрия) */
.layout {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

/* Calculator Container */
.calculator-container {
    max-width: 650px;
    width: 100%;
    flex: 1 1 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* За обратна съвместимост */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 30px;
    margin: 30px 0;
    animation: fadeIn 0.5s ease-in;
    flex: 0 0 auto;
}

/* Left Ad Sidebar - лява колона за бъдеща реклама */
.left-ad {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    min-height: 250px;
    display: block;
    position: sticky;
    top: 80px;
    /* Засега празна - ще добавим реклама по-късно */
}

/* Right Ad Sidebar - дясна колона за реклама */
.right-ad {
    flex: 0 0 300px;
    width: 300px;      /* важно, за да няма availableWidth=0 */
    min-width: 300px;  /* гарантира минимална ширина */
    max-width: 300px;
    min-height: 250px; /* минимална височина */
    display: block;
    position: sticky;
    top: 80px;
}

/* Dropdown responsive */
@media (max-width: 768px) {
    .dropdown-content {
        right: auto;
        left: 0;
        min-width: 100%;
    }
    
    .dropdown-item {
        padding: 12px 15px;
    }
    
    .dropdown-text {
        font-size: 14px;
    }
    
    .dropdown-subtitle {
        font-size: 11px;
    }
}

/* Hide ads on mobile - скрий колоните при мобилни */
@media (max-width: 1100px) {
    .left-ad,
    .right-ad {
        display: none;
    }
    
    .layout {
        padding: 0 10px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
        width: 100%;
    }
    
    .calculator-container {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        position: relative;
        touch-action: pan-y pinch-zoom;
    }
}

/* Wider container for desktop/web */
@media (min-width: 768px) {
    .calculator-container {
        max-width: 650px;
    }
    
    .container {
        max-width: 650px;
    }
}

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

.container header {
    text-align: center;
    margin-bottom: 30px;
}

.container header h1 {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 18px;
    font-weight: 400;
}

.input-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.input-group-title {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.input-section {
    margin-bottom: 20px;
}

.input-group .input-section:last-of-type {
    margin-bottom: 15px;
}

.total-given {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #667eea;
    font-size: 18px;
    font-weight: 700;
}

.total-given span:first-child {
    color: #666;
}

.total-given span:last-child {
    color: #667eea;
    font-size: 24px;
}

.input-section label {
    display: block;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.input-section input {
    width: 100%;
    padding: 18px;
    font-size: 24px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: right;
    font-weight: 600;
    color: #333;
}

.input-section input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-section input::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* Center text and placeholder for customer name input */
#proCustomerName {
    text-align: center;
}

.calculate-btn {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.result-section {
    margin-top: 20px;
    animation: slideIn 0.3s ease-out;
}

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

.result-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.page-osigurovki .result-box {
    padding: 18px;
    margin-bottom: 15px;
}

.page-osigurovki .result-box h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.page-osigurovki .breakdown-section {
    margin-top: 12px;
}

.page-osigurovki .breakdown-item {
    padding: 8px 0;
    font-size: 15px;
}

.result-box.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.result-row.highlight-employer {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    padding: 18px 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-bottom: none;
    border-top: 2px solid #ffc107;
    border-bottom: 2px solid #ffc107;
}

.result-row.highlight-employer .result-value.highlight-value {
    color: #ff9800;
}

.result-box h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.calculator-subtitle {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin: 12px 0 30px 0;
    font-weight: 400;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-row.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 18px 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-bottom: none;
    border-top: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
}

.result-value.highlight-value {
    font-size: 36px;
    color: #667eea;
    font-weight: 800;
}

.currency-symbol {
    font-size: 18px;
    color: #666;
    margin-left: 5px;
    font-weight: 600;
}

.breakdown-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.breakdown-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.breakdown-item.total-breakdown {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: 2px solid #667eea;
    font-weight: 700;
}

.breakdown-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.breakdown-details {
    padding-left: 20px;
    margin-bottom: 10px;
}

.breakdown-subitem {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #666;
}

.breakdown-subitem span:first-child {
    color: #555;
}

.breakdown-subitem span:last-child {
    font-weight: 600;
    color: #333;
}

.info-box {
    background: #e8f4ff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.info-box h4 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.info-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.info-list li:last-child {
    margin-bottom: 0;
}

/* Schedule Table for Mortgage Calculator */
.schedule-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.schedule-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.schedule-table th:first-child {
    padding-left: 15px;
}

.schedule-table th:last-child {
    padding-right: 15px;
}

.schedule-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.schedule-table tbody tr:hover {
    background-color: #f8f9fa;
}

.schedule-table tbody tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 10px 8px;
    font-size: 14px;
    color: #333;
}

.schedule-table td:first-child {
    padding-left: 15px;
    font-weight: 600;
    color: #667eea;
}

.schedule-table td:last-child {
    padding-right: 15px;
    font-weight: 600;
}

.schedule-table tbody td:nth-child(2),
.schedule-table tbody td:nth-child(3),
.schedule-table tbody td:nth-child(4) {
    text-align: right;
    font-family: 'Courier New', monospace;
}

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

.currency-label {
    font-size: 20px;
    font-weight: 600;
    color: #666;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.banknotes-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.banknotes-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.banknote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

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

.banknote-count {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.banknote-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.banknote-total {
    font-size: 16px;
    color: #666;
    margin-left: 10px;
}

/* Apply Change Section */
.apply-change-section {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 12px;
    border: 2px solid #4caf50;
    text-align: center;
}

.apply-change-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.apply-change-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

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

.apply-change-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.apply-change-btn span {
    font-size: 20px;
}

.apply-change-note {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Available Denominations Section */
.available-denominations-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.denominations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.denominations-title {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.denominations-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

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

.denominations-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.denominations-group {
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.denominations-group h4 {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.denominations-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.denomination-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.denomination-item:hover {
    background: #e9ecef;
}

.denomination-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.denomination-item label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    flex: 1;
    user-select: none;
}

.denomination-item input[type="checkbox"]:checked + label {
    color: #667eea;
}

.denomination-item:has(input[type="checkbox"]:not(:checked)) {
    opacity: 0.6;
}

.denomination-item:has(input[type="checkbox"]:not(:checked)) label {
    text-decoration: line-through;
    color: #999;
}

.warning-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
    color: #856404;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 600px) {
    body {
        padding: 0;
        background: #f5f5f5;
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    html {
        overflow-x: hidden;
        width: 100%;
    }

    .site-header {
        padding: 8px 0;
        min-height: 45px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-bottom: 2px solid #e0e0e0;
    }

    .header-content {
        padding: 0 15px;
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .header-logo {
        margin-left: 0;
        gap: 8px;
        min-width: 0;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }

    .header-logo-img {
        height: 42px;
        flex-shrink: 0;
    }

    .header-logo-text {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-nav {
        width: 100%;
        gap: 8px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .header-nav-btn {
        padding: 6px 14px;
        font-size: 14px;
        width: 100%;
    }

    .dropdown {
        width: 100%;
    }

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

    .calculator-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .tabs-container {
        gap: 5px;
        margin-bottom: 20px;
    }

    .tab-button {
        padding: 12px 10px;
        font-size: 14px;
    }

    .tab-actions {
        justify-content: center;
        margin-bottom: 18px;
    }

    .how-it-works-inline-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 10px 14px;
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
    }

    .converter-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .converter-arrow {
        font-size: 24px;
        transform: rotate(90deg);
    }

    .converter-input {
        font-size: 20px;
        padding: 15px;
    }

    .converter-main {
        padding: 20px 15px;
    }

    .calculator-container,
    .container {
        padding: 20px;
        border-radius: 0 0 15px 15px;
        margin: 0 auto 20px;
        width: calc(100% - 20px);
        max-width: 100%;
        position: relative;
        touch-action: pan-y pinch-zoom;
        left: 0;
        right: 0;
    }

    .layout {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .calculator-container header h1,
    .container header h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .site-footer {
        padding: 30px 0 15px;
    }

    .input-section label {
        font-size: 16px;
    }

    .input-section input {
        padding: 16px;
        font-size: 20px;
    }

    .calculate-btn {
        padding: 18px;
        font-size: 20px;
    }

    .result-value {
        font-size: 28px;
    }

    .currency-label {
        font-size: 18px;
    }

    .banknote-count {
        font-size: 18px;
    }

    .banknote-value {
        font-size: 16px;
    }

    .banknotes-section h3 {
        margin-bottom: 10px;
    }

    .available-denominations-section {
        padding: 20px 15px;
    }

    .denominations-header {
        flex-direction: column;
        align-items: stretch;
    }

    .denominations-title {
        margin-bottom: 15px;
    }

    .denominations-controls {
        width: 100%;
    }

    .control-btn {
        flex: 1;
        padding: 10px;
    }

    .denominations-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .denomination-item {
        padding: 10px;
    }

    .input-group {
        padding: 15px;
    }

    .input-group-title {
        font-size: 18px;
    }

    .total-given {
        font-size: 14px;
        padding: 12px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .total-given span:last-child {
        font-size: 18px;
    }

    .denominations-controls {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
    }

    .denominations-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .denomination-item {
        padding: 8px;
    }

    .denomination-item label {
        font-size: 13px;
    }

    .denominations-group h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .result-box {
        padding: 20px 15px;
    }

    .result-box h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .result-row {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .banknote-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 10px;
    }

    .banknote-item > div {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .warning-message {
        font-size: 13px;
        padding: 10px;
        line-height: 1.5;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 13px;
    }

    .header-info p {
        font-size: 12px;
    }

    .login-box {
        padding: 30px 20px;
        max-width: 100%;
    }

    .login-box h2 {
        font-size: 28px;
    }

    .login-input {
        padding: 16px;
        font-size: 18px;
    }

    .login-btn {
        padding: 18px;
        font-size: 20px;
    }

    .schedule-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .schedule-table {
        font-size: 12px;
        min-width: 500px;
    }

    .schedule-table th {
        padding: 8px 6px;
        font-size: 12px;
    }

    .schedule-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .schedule-table th:first-child,
    .schedule-table td:first-child {
        padding-left: 10px;
    }

    .schedule-table th:last-child,
    .schedule-table td:last-child {
        padding-right: 10px;
    }
}

/* Tablet responsive */
@media (max-width: 900px) and (min-width: 601px) {
    .header-content {
        padding: 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-container,
    .container {
        max-width: 600px;
    }
}

/* iPhone 17 Pro and similar devices (430px) */
@media (max-width: 430px) and (min-width: 401px) {
    .layout {
        padding: 0 12px;
        justify-content: center;
        align-items: center;
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .calculator-container,
    .container {
        margin: 0 auto 20px;
        width: calc(100% - 24px);
        max-width: 100%;
        position: relative;
        touch-action: pan-y pinch-zoom;
        left: 0;
        right: 0;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .site-header {
        padding: 12px 0;
        min-height: 45px;
    }

    .calculator-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .tab-button {
        padding: 10px 8px;
        font-size: 12px;
    }

    .converter-input {
        font-size: 18px;
        padding: 12px;
    }

    .converter-input-section label {
        font-size: 14px;
    }

    .calculator-container,
    .container {
        padding: 15px;
        margin: 0 auto 15px;
        width: calc(100% - 20px);
        border-radius: 12px;
        position: relative;
        touch-action: pan-y pinch-zoom;
        left: 0;
        right: 0;
    }

    .layout {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .input-section {
        margin-bottom: 20px;
    }

    .input-section label {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .input-section input {
        padding: 14px;
        font-size: 18px;
    }

    .input-group {
        padding: 12px;
    }

    .input-group-title {
        font-size: 15px;
    }

    .calculate-btn {
        padding: 16px;
        font-size: 18px;
    }

    .denominations-items {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }

    .denomination-item {
        padding: 6px;
    }

    .denomination-item label {
        font-size: 12px;
    }

    .result-value {
        font-size: 24px;
    }

    .currency-label {
        font-size: 16px;
    }

    .banknote-count {
        font-size: 16px;
    }

    .banknote-value {
        font-size: 14px;
    }

    .banknote-total {
        font-size: 14px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-section h3 {
        font-size: 15px;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 12px;
    }
}

/* ============================================
   PRO Version - Shift Management & Inventory
   ============================================ */

/* Shift Management Section */
.shift-management-section {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
}

.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shift-header:hover {
    background-color: #f0f0f0;
}

.shift-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shift-toggle-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.shift-toggle-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.shift-toggle-btn.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.shift-content {
    padding: 0 20px 20px 20px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.shift-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}

.shift-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.shift-label {
    font-weight: 600;
    color: #666;
    font-size: 16px;
}

.shift-value {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

.shift-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shift-btn-start {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.shift-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.shift-btn-end {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.shift-btn-end:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Inventory Display */
.inventory-display {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #667eea;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.inventory-title {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: center;
}

.correction-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.correction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

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

.correction-btn span {
    font-size: 16px;
}

.inventory-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.history-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.history-btn span {
    font-size: 16px;
}

.report-pdf-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.report-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

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

.report-pdf-btn span {
    font-size: 16px;
}

/* Modal Large for reports */
.modal-large {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

/* How It Works Content */
.how-it-works-content {
    padding: 10px 0;
}

.how-it-works-content h3 {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.how-it-works-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.how-it-works-section:last-child {
    border-bottom: none;
}

.how-it-works-section h4 {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-top: 10px;
}

.how-it-works-section h5 {
    color: #555;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.how-it-works-section p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.how-it-works-section ul {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-left: 20px;
    margin-bottom: 15px;
}

.how-it-works-section ul li {
    margin-bottom: 8px;
}

.how-it-works-section ul ul {
    margin-top: 8px;
    margin-left: 30px;
    font-size: 14px;
}

.how-it-works-section strong {
    color: #667eea;
    font-weight: 600;
}

/* History Styles */
.history-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.history-summary h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.history-summary-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.history-summary-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.history-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

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

.history-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

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

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.history-item-type {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.history-item-type.change {
    color: #28a745;
}

.history-item-type.correction {
    color: #ff9800;
}

.history-item-time {
    font-size: 12px;
    color: #666;
}

.history-item-details {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

.history-item-breakdown {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.history-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
}

.history-breakdown-label {
    color: #666;
}

.history-breakdown-value {
    font-weight: 600;
    color: #333;
}

/* Report Styles */
.report-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.report-header h3 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.report-header-info {
    color: #666;
    font-size: 14px;
}

.report-section {
    margin-bottom: 25px;
}

.report-section-title {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
}

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

.report-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.report-table td {
    color: #555;
    font-size: 14px;
}

.report-table tr:last-child td {
    border-bottom: none;
}

.report-table .text-right {
    text-align: right;
}

.report-table .text-center {
    text-align: center;
}

.report-total-row {
    background: #667eea;
    color: white;
    font-weight: 700;
}

.report-total-row td {
    color: white;
}

.report-summary-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.report-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.report-summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: #667eea;
}

.report-summary-label {
    color: #666;
    font-weight: 600;
}

.report-summary-value {
    color: #333;
    font-weight: 700;
}

.report-signature-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.report-signature-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 30px;
}

.report-signature-box {
    flex: 1;
    text-align: center;
}

.report-signature-line {
    border-top: 2px solid #333;
    margin-top: 50px;
    padding-top: 5px;
    font-size: 14px;
    color: #666;
}

.modal-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.modal-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.inventory-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.inventory-item.low-stock {
    border-color: #ffc107;
    background: #fff3cd;
}

.inventory-item.critical-stock {
    border-color: #dc3545;
    background: #f8d7da;
}

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

.inventory-item-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.inventory-item-count {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

.inventory-item-value {
    font-size: 12px;
    color: #666;
    text-align: right;
}

.inventory-item-progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.inventory-item-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.inventory-item-progress-bar.low {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.inventory-item-progress-bar.critical {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.inventory-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
}

.inventory-total span:first-child {
    font-weight: 600;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-input-section {
    margin-bottom: 25px;
}

.modal-input-section label {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-input-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.modal-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
}

.modal-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-inventory-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.modal-inventory-input-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-inventory-input-item label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.modal-inventory-input-item input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* Inventory Mode Selector */
.inventory-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.radio-option:hover {
    background: #f0f0f0;
    border-color: #667eea;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-option span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.radio-option input[type="radio"]:checked + span {
    color: #667eea;
}

.radio-option:has(input[type="radio"]:checked) {
    background: #f0f4ff;
    border-color: #667eea;
}

.inventory-mode-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.inventory-mode-warning p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.inventory-mode-warning strong {
    font-weight: 700;
}

.total-inventory-input {
    margin-top: 15px;
}

.total-inventory-input label {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-inventory-input-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
}

.modal-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.modal-btn-cancel:hover {
    background: #e0e0e0;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Mobile responsive for PRO features */
@media (max-width: 600px) {
    .shift-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shift-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .shift-btn {
        flex: 1;
    }
    
    .shift-toggle-btn {
        flex-shrink: 0;
    }
    
    .inventory-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inventory-title {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .inventory-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .correction-btn,
    .history-btn {
        width: 100%;
        justify-content: center;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .modal-container {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .modal-inventory-inputs {
        grid-template-columns: 1fr;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
}

.toast.success {
    border-left-color: #28a745;
    color: #155724;
}

.toast.error {
    border-left-color: #dc3545;
    color: #721c24;
}

.toast.warning {
    border-left-color: #ff9800;
    color: #856404;
}

.toast.info {
    border-left-color: #667eea;
    color: #4a5568;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Custom Confirmation Modal */
.modal-small {
    max-width: 450px;
}

/* Mobile responsive for toast */
@media (max-width: 600px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutRight {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideUpBanner 0.4s ease-out;
    border: 2px solid #667eea;
}

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

.cookie-banner-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.cookie-btn-decline {
    background: #f0f0f0;
    color: #666;
}

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

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

/* Mobile responsive for cookie banner */
@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .cookie-banner-content {
        padding: 15px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

