/* AIDROPS PRO - Main Stylesheet */

/* CSS Variables - colors from design specification */
:root {
    /* Brand colors */
    --brand-amber: #E8B647;
    --brand-amber-dark: #D9A636;
    --brand-amber-light: rgba(232, 182, 71, 0.1);

    /* Ink colors (grayscale) */
    --ink-900: #2B2B2B;
    --ink-800: #1A1A1A;
    --ink-700: #4A4A4A;
    --ink-600: #6B6B6B;
    --ink-500: #6B6B6B;
    --ink-400: #D1D1D1;
    --ink-300: #D1D1D1;
    --ink-200: #E8E8E8;
    --ink-100: #F5F5F5;

    /* Status colors */
    --success-leaf: #4CAF50;
    --success-leaf-light: #E8F5E9;
    --danger: #E74C3C;
    --danger-light: #FFEBEE;
    --warning: #FBC02D;
    --warning-light: #FFF9C4;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* White */
    --white: #FFFFFF;

    /* Border radius from design spec */
    --border-radius-card: 8px;
    --border-radius-button: 6px;
    --border-radius-modal: 12px;

    /* Spacing */
    --container-max: 1320px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-700);
    background-color: #EEEEEE;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Czarne tło tylko dla strony produktów */
body.products-page {
    background-color: #0a0a0a;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--ink-900);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* Topbar - Following design spec */
.topbar {
    background: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link.active {
    color: var(--white);
    font-weight: 500;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cart {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 0;
    margin-right: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
}

.btn-cart svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    stroke-width: 1.8;
    transition: all 0.2s ease;
}

.btn-cart:hover svg {
    stroke: var(--white);
    opacity: 0.8;
    transform: scale(1.05);
}

/* Search Toggle Button - Next to Cart */
.btn-search-toggle {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 0;
    margin-right: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
}

.btn-search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.btn-search-toggle:hover svg {
    stroke: var(--brand-amber);
    transform: scale(1.1);
}

.btn-search-toggle.active {
    background: rgba(232, 182, 71, 0.15);
    border-radius: 50%;
}

.btn-search-toggle.active svg {
    stroke: var(--brand-amber);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F6C244;
    color: var(--ink-900);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-account {
    background: var(--brand-amber);
    color: var(--ink-900);
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-account:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-manager {
    background: transparent;
    color: var(--brand-amber);
    border: 1px solid var(--brand-amber);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-manager:hover {
    background: rgba(232, 182, 71, 0.1);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
    background: transparent;
}

/* Czarne tło main-content tylko dla strony produktów */
body.products-page .main-content {
    background: #0a0a0a;
}

/* Page Header - Following design spec */
.page-header {
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
    height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    margin: 0 0 40px 0;
    position: relative;
}

.page-header-content {
    width: 100%;
    max-width: var(--container-max);
    padding: 60px 40px 0 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title-icon {
    font-size: 28px;
    color: var(--brand-amber);
}

.page-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* Buttons - Following design spec */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--brand-amber);
    color: var(--ink-900);
    font-weight: 600;
}

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

.btn-outline {
    background-color: var(--white);
    border: 1.5px solid var(--ink-300);
    color: var(--ink-900);
    font-weight: 500;
}

.btn-outline:hover {
    border-color: var(--brand-amber);
    background: var(--brand-amber-light);
}

.btn-secondary {
    background: var(--white);
    border: 1px solid var(--ink-300);
    color: var(--ink-900);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--ink-100);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
}

.btn-action {
    background: var(--brand-amber);
    color: var(--ink-900);
    font-weight: 600;
    width: 100%;
    padding: 14px;
}

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

/* Cards - Following design spec */
.card {
    background: var(--white);
    border: 1px solid var(--ink-300);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--ink-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-900);
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brand-amber);
}

.stat-card-success {
    border-left-color: var(--success-leaf);
}

.stat-card-danger {
    border-left-color: var(--danger);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--ink-600);
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-900);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xl);
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    min-width: 0;
}

/* Filter Tabs - Following design spec */
.filter-tabs-container {
    border-bottom: 2px solid var(--ink-200);
    margin: 0 40px;
}

.filter-tabs {
    display: flex;
    gap: 0;
}

.filter-tab {
    display: inline-block;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--ink-700);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.filter-tab:hover {
    color: var(--ink-900);
}

.filter-tab.active {
    color: var(--ink-900);
    border-bottom-color: var(--brand-amber);
}

.filter-tab .badge-count {
    background: var(--ink-300);
    color: var(--ink-700);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    margin-left: 8px;
    display: inline-block;
}

.filter-tab.active .badge-count {
    background: var(--brand-amber);
    color: var(--white);
}

/* Order Cards - Following design spec */
.orders-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 40px auto;
    padding: 0 40px;
}

.order-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--ink-300);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    position: relative;
    min-width: 0;
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.order-header > div:first-child {
    flex: 1;
    min-width: 0;
}

.order-company-icon {
    width: 60px;
    height: 60px;
    background: var(--ink-200);
    border-radius: var(--border-radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.4;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.order-info {
    font-size: 14px;
    color: var(--ink-700);
    line-height: 1.6;
    margin-bottom: 16px;
    overflow: hidden;
}

.order-info strong {
    display: inline-block;
    min-width: 90px;
}

.order-info br + strong {
    margin-top: 4px;
}

.order-status-bar {
    display: flex;
    border-top: 1px solid var(--ink-200);
    border-bottom: 1px solid var(--ink-200);
    padding: 12px 0;
    margin: 16px 0;
}

.order-status-item {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--ink-500);
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.order-doc-buttons {
    display: flex;
    gap: 8px;
}

.btn-doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--ink-300);
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--border-radius-button);
    transition: all 0.2s ease;
}

.btn-doc:hover {
    background: var(--ink-100);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-assigned,
.badge-in_progress {
    background-color: var(--info-light);
    color: var(--info);
}

.badge-done {
    background-color: var(--success-leaf-light);
    color: var(--success-leaf);
}

.badge-rejected {
    background-color: var(--danger-light);
    color: var(--danger);
}

/* Forms - Following design spec */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--ink-900);
    border: 1px solid var(--ink-300);
    border-radius: var(--border-radius-button);
    background-color: var(--white);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(232, 182, 71, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    color: var(--danger);
    font-size: 14px;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--ink-700);
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: var(--spacing-lg);
    z-index: 1000;
    max-width: 420px;
}

.flash {
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background-color: var(--success-leaf-light);
    color: var(--success-leaf);
    border-left: 4px solid var(--success-leaf);
}

.flash-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.flash-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.flash-info {
    background-color: var(--info-light);
    color: var(--info);
    border-left: 4px solid var(--info);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

/* Loading & Empty States */
.loading,
.empty-state,
.error-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--ink-600);
}

.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Footer */
.footer {
    background: var(--ink-200);
    border-top: 1px solid var(--ink-300);
    padding: 40px 0;
    margin-top: 0;
    text-align: center;
    color: var(--ink-600);
    font-size: 13px;
}

/* Czarny footer tylko dla strony produktów */
body.products-page .footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Modal - Following design spec */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: var(--white);
    border-radius: var(--border-radius-modal);
    width: 500px;
    max-width: 90vw;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--ink-500);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--ink-900);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 24px;
}

/* Preset RBH Buttons - Following design spec */
.preset-rbh-container {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.btn-preset-rbh {
    padding: 12px 24px;
    border: 1px solid;
    border-radius: var(--border-radius-button);
    font-size: 14px;
    font-weight: 500;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-preset-rbh:hover {
    transform: translateY(-1px);
}

.btn-preset-negative {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.btn-preset-low {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.btn-preset-medium {
    background: #FFF9C4;
    border-color: #FBC02D;
    color: #F57F17;
}

.btn-preset-high {
    background: #FFEBEE;
    border-color: #E74C3C;
    color: #C62828;
}

.btn-preset-rbh.active {
    box-shadow: 0 0 0 3px rgba(232, 182, 71, 0.3);
    font-weight: 600;
}

.btn-preset-low.active {
    background: #4CAF50;
    color: var(--white);
}

.btn-preset-medium.active {
    background: #FBC02D;
    color: var(--white);
}

.btn-preset-high.active {
    background: #E74C3C;
    color: var(--white);
}

.price-info {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-700);
    text-align: right;
    margin-top: 16px;
}

/* Calendar Widget - Following design spec */
.calendar-widget {
    width: 100%;
}

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

.calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-900);
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--brand-amber);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--ink-100);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-500);
    padding: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ink-700);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:not(.empty):hover {
    background: var(--ink-100);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    background: var(--brand-amber);
    color: var(--white);
    font-weight: 600;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--success-leaf);
}

.calendar-day.today.has-events::after {
    background: var(--white);
}

/* Responsive - Following design spec */
@media (max-width: 1199px) {
    .orders-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 30px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .topbar-content {
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
    }

    .orders-list {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-header {
        height: 140px;
    }

    .page-header-content {
        padding: 40px 30px 0 30px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-actions {
        position: static;
        margin-top: 16px;
    }

    .filter-tabs-container {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-doc-buttons {
        flex-direction: column;
    }

    .topbar {
        height: auto;
        padding: 10px 0;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav {
        gap: 12px;
    }

    .page-header {
        height: 120px;
    }

    .page-header-content {
        padding: 30px 20px 0 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 24px;
    }

    .page-actions {
        margin-top: 12px;
    }
}

/* Info Button & Panel */
.info-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-amber);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.info-button.active {
    background: var(--ink-800);
}

.info-icon {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink-900);
    font-family: Georgia, serif;
}

.info-button.active .info-icon {
    color: var(--brand-amber);
}

.info-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 420px;
    max-height: 600px;
    background: white;
    border-radius: var(--border-radius-modal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.info-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.info-panel-header {
    background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--brand-amber);
}

.info-panel-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.info-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.info-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-panel-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.changelog-section {
    margin-bottom: 24px;
}

.changelog-section:last-of-type {
    margin-bottom: 0;
}

.changelog-section h4 {
    color: var(--ink-900);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink-200);
}

.changelog-section ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.changelog-section li {
    color: var(--ink-700);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 8px;
    position: relative;
}

.changelog-section li:before {
    content: '';
    position: absolute;
    left: -12px;
    top: 9px;
    width: 4px;
    height: 4px;
    background: var(--brand-amber);
    border-radius: 50%;
}

.changelog-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--ink-200);
    text-align: center;
}

.changelog-footer p {
    margin: 6px 0;
    font-size: 13px;
    color: var(--ink-600);
}

.changelog-footer strong {
    color: var(--ink-900);
    font-weight: 600;
}

/* Chat Button & Panel */
.chat-button {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.chat-button.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.chat-icon {
    color: white;
}

.chat-panel {
    position: fixed;
    bottom: 164px;
    right: 24px;
    width: 420px;
    height: 600px;
    background: white;
    border-radius: var(--border-radius-modal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-panel-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.chat-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.chat-panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-panel-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

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

.chat-message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-700);
}

.chat-message.user .chat-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 40px;
}

.chat-message.user .chat-message-content strong {
    color: rgba(255, 255, 255, 0.9);
}

.chat-message.assistant .chat-message-content {
    background: white;
    margin-right: 40px;
}

.chat-message-content strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
}

.chat-panel-footer {
    padding: 16px;
    background: white;
    border-top: 1px solid var(--ink-200);
}

.chat-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--ink-200);
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

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

.chat-input-container input:disabled {
    background: var(--ink-100);
    cursor: not-allowed;
}

.chat-send-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-button:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick Questions */
.quick-questions {
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-top: 16px;
}

.quick-questions-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-600);
    margin-bottom: 12px;
}

.quick-question-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: var(--ink-700);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-question-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(4px);
}

.quick-question-btn:last-child {
    margin-bottom: 0;
}

/* Streaming Cursor Animation */
.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #667eea;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.streaming-content {
    display: inline;
}

/* Chat Info Message */
.chat-info-message {
    padding: 12px 16px;
    margin: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 3px solid #ffc107;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-700);
    line-height: 1.5;
}

.chat-info-message strong {
    color: var(--ink-900);
}

/* Loading Dots Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots .dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
        max-height: 70vh;
    }

    .info-button {
        bottom: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
    }

    .info-icon {
        font-size: 24px;
    }

    .chat-button {
        bottom: 72px;
        right: 12px;
        width: 48px;
        height: 48px;
    }

    .chat-panel {
        right: 12px;
        left: 12px;
        bottom: 132px;
        width: auto;
        height: calc(100vh - 200px);
        max-height: 500px;
    }
}
