:root {
    --main-red: #FF0000;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-dark: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-zoom: fixed;
    zoom: 1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gray-light);
    color: var(--black);
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    padding-bottom: 120px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInBlurSmooth 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loader.hidden {
    display: none;
}

.spinner {
    display: none;
}

@keyframes fadeInBlurSmooth {
    from {
        backdrop-filter: blur(0px);
    }
    to {
        backdrop-filter: blur(3px);
    }
}

/* Snackbar */
.snackbar {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.modal-overlay {
    animation: fadeInBlurOverlay 0.3s ease-in-out;
}

@keyframes fadeInBlurOverlay {
    from {
        backdrop-filter: blur(0px);
    }
    to {
        backdrop-filter: blur(6px);
    }
}

/* Card */
.card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 16px;
    box-shadow: 0 2px 20px var(--shadow);
}

.card[style*="background: var(--black)"] {
    padding: 32px;
}

/* Button */
.btn {
    padding: 20px 24px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: var(--black);
    color: var(--main-red);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: none;
}

.btn-tertiary {
    background: var(--gray-light);
    color: var(--black);
}

/* Input */
.input {
    width: 100%;
    padding: 20px 24px;
    border: none;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 16px;
    /* margin-bottom: 12px; */
    color: var(--black);
    outline: none;
}

.input:focus {
    outline: none;
}

.input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Inputy z białym tłem */
.input[style*="rgba(255, 255, 255, 0.08)"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white) !important;
    outline: none;
}

.input[style*="rgba(255, 255, 255, 0.08)"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input[style*="rgba(255, 255, 255, 0.08)"]:focus {
    outline: none;
}

.input[style*="rgba(255, 255, 255, 0.08)"]:focus {
    background: rgba(255, 255, 255, 0.12);
}

.card[style*="background: var(--black)"] .input {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.card[style*="background: var(--black)"] .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Widget */
.widget {
    background: var(--white);
    border-radius: 36px;
    padding: 20px 0;
    margin-bottom: 16px;
    box-shadow: 0 2px 20px var(--shadow);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px 16px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
}

.widget-content {
    padding: 16px 28px 30px 0px;
}

/* Tab Bar */
.tab-bar {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    margin-bottom: 16px;
}

.tab {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.4);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: var(--black);
    color: var(--main-red);
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    padding: 12px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 100;
    width: fit-content;
    max-width: calc(100% - 32px);
}

.bottom-bar-item {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar-item img {
    width: 40px;
    height: 40px;
    filter: invert(1) brightness(1);
}

.bottom-bar-item.active img {
    filter: invert(1) brightness(1);
}

.bottom-bar-item.active {
    color: var(--white);
}

/* Tag */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.tag-200 { background: rgba(0, 255, 0, 0.15); color: green; }
.tag-300 { background: rgba(255, 165, 0, 0.15); color: orange; }
.tag-600 { background: rgba(255, 0, 0, 0.15); color: red; }

/* List Separator */
.list-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 16px 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgb(29, 29, 29);
    padding: 32px;
    border-radius: 40px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: none;
    scroll-behavior: smooth;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content .input {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: none;
    padding: 14px 18px;
    border-radius: 40px;
    font-size: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.modal-content .input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.modal .input,
.modal-overlay .input {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--white) !important;
    border: none !important;
}

.modal .input::placeholder,
.modal-overlay .input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.modal .input:focus,
.modal-overlay .input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .card, .widget {
        padding: 20px;
    }
}
/* Tag Component */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.tag-small {
    padding: 4px 8px;
    font-size: 12px;
}

.tag-200 { 
    background: rgba(0, 255, 0, 0.15); 
    color: #22c55e; 
}

.tag-300 { 
    background: rgba(255, 165, 0, 0.15); 
    color: #f97316; 
}

.tag-400 { 
    background: rgba(59, 130, 246, 0.15); 
    color: #3b82f6; 
}

.tag-500 { 
    background: rgba(168, 85, 247, 0.15); 
    color: #a855f7; 
}

.tag-600 { 
    background: rgba(255, 0, 0, 0.15); 
    color: #ef4444; 
}

/* Widget Component */
.widget {
    background: var(--white);
    border-radius: 36px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px 16px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
}

.widget-content {
    padding: 16px 28px 30px 28px;
}

/* List Separator */
.list-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 16px 0;
}

/* Background Blur */
.background-blur {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Circle Indicator */
.circle-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    filter: blur(4px);
    position: relative;
}

.circle-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(0);
}

/* Status Colors */
.status-accepted { background: #22c55e; }
.status-rejected { background: #ef4444; }
.status-in-progress { background: #3b82f6; }
.status-canceled { background: #f97316; }

/* Company Card */
.company-card {
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    overflow: hidden;
    margin-bottom: 16px;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.company-logo {
    width: 120px;
    height: 100%;
    min-height: 160px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Box */
.info-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-box-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.3);
}

.info-box-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

/* Order Status Widget */
.order-status-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.image-gallery::-webkit-scrollbar {
    display: none;
}

.gallery-image {
    min-width: 200px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    scroll-snap-align: start;
}

/* Flow Layout (Service Tags) */
.flow-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
}

/* Loading States */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Additional Components */
.background-blur {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.company-logo {
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-box-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.3);
}

.info-box-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.circle-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
}

.order-status-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.service-tag {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
}

.flow-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0;
}

.image-gallery::-webkit-scrollbar {
    display: none;
}

.gallery-image {
    min-width: 200px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.company-card {
    /* padding: 20px; */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Textarea */
textarea.input {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Input Picker */
.input-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

.input-picker::after {
    content: '›';
    font-size: 24px;
    font-weight: bold;
    opacity: 0.3;
    margin-left: 12px;
}

/* Modal */
.modal {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Ukrycie scrollbara na Firefox */
.modal {
    scrollbar-width: none;
}