
@font-face {
    font-family: 'arizona_flare_medium';
    src: url('/assets/fonts/arizona_flare_medium.otf') format('opentype');
    font-weight: 500;
}

/* Gilroy font loaded from local assets */
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-regularitalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-mediumitalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-semibolditalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy-bolditalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary-color: #2563eb;
    --text-color: #333;
    --background-color: #ffffff;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    /* ========== FONT VARIABLES ========== */
    --primary-font: 'Gilroy', sans-serif;
    --title-font: 'arizona_flare_medium', serif;
    /* Font weight variables for consistency */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Code font variables */
    --code-font: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --code-font-weight: 400;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* ========== FONT UTILITY CLASSES ========== */
/* Primary font utility classes */
.primary-font {
    font-family: var(--primary-font);
}
.primary-title {
    font-family: var(--primary-font);
    font-weight: var(--font-weight-medium);
}
.primary-semibold {
    font-family: var(--primary-font);
    font-weight: var(--font-weight-semibold);
}
.primary-bold {
    font-family: var(--primary-font);
    font-weight: var(--font-weight-bold);
}
/* Standalone weight utility classes */
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
/* Title font utility classes */
.title-font {
    font-family: var(--title-font);
}
/* Code font utility */
.code-font { font-family: var(--code-font); }
.code-font-regular { font-family: var(--code-font); font-weight: var(--code-font-weight); }
/* ========== GILROY FONT UTILITY CLASSES (LEGACY) ========== */
.gilroy-regular {
    font-family: 'gilroy_regular', sans-serif;
    font-weight: 400;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.gilroy-regular-italic {
    font-family: 'gilroy_regular_italic', sans-serif;
    font-weight: 400;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.gilroy-medium {
    font-family: 'gilroy_medium', sans-serif;
    font-weight: 500;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.gilroy-medium-italic {
    font-family: 'gilroy_medium_italic', sans-serif;
    font-weight: 500;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.gilroy-semibold {
    font-family: 'gilroy_semibold', sans-serif;
    font-weight: 600;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.gilroy-semibold-italic {
    font-family: 'gilroy_semibold_italic', sans-serif;
    font-weight: 600;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.gilroy-bold {
    font-family: 'gilroy_bold', sans-serif;
    font-weight: 700;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.gilroy-bold-italic {
    font-family: 'gilroy_bold_italic', sans-serif;
    font-weight: 700;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* ========== ANIMATIONS ========== */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
/* ========== GLOBAL PROCESSING MODAL STYLES ========== */
/* Processing Drawer Styles */
.processing-modal {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: auto;
    max-height: 600px;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
    /* Allow clicks through when hidden */
}
.processing-modal-backdrop {
    display: none;
    /* Removed backdrop for drawer style */
}
.processing-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    /* Rounded top corners */
    padding: 24px;
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    z-index: 10002;
    box-shadow: 0px -4px 24px 0px rgba(0, 0, 0, 0.12);
    /* Shadow for drawer */
    will-change: transform, opacity;
    transform: translateY(100%);
    /* Start off-screen */
    transition: transform 0.3s ease-out;
    pointer-events: auto;
    /* Allow clicks on content */
    border: 1px solid #e7edf3;
    border-bottom: none;
}
.processing-modal.show .processing-modal-content {
    transform: translateY(0);
    /* Slide in */
}
.processing-modal-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.processing-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}
.processing-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.processing-icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.processing-spinner {
    width: 32px;
    height: 32px;
    position: relative;
}
.spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.processing-checkmark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.processing-title {
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.processing-subtitle {
    font-weight: var(--font-weight-regular);
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}
.processing-close-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.processing-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}
.processing-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.processing-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.processing-file-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.processing-file-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.processing-file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.processing-file-name {
    font-weight: var(--font-weight-medium);
    font-size: 12px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.processing-file-size {
    font-weight: var(--font-weight-medium);
    font-size: 10px;
    color: #6b7280;
}
.processing-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}
.processing-status-text {
    font-weight: var(--font-weight-medium);
    font-size: 12px;
    color: #0369a1;
    line-height: 1.3;
}
.processing-status-time {
    font-weight: var(--font-weight-medium);
    font-size: 10px;
    color: #0891b2;
}
.processing-note {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    border: 1px solid #fde68a;
}
.processing-note p {
    font-weight: var(--font-weight-medium);
    font-size: 10px;
    color: #92400e;
    margin: 0;
    line-height: 1.3;
}
/* Processing Files List */
.processing-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
}
.processing-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.processing-file-item.completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.processing-file-item.failed {
    background: #fef2f2;
    border-color: #fecaca;
}
.processing-file-item .processing-file-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.processing-file-item .processing-file-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.processing-file-item .processing-file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.processing-file-item .processing-file-name {
    font-weight: var(--font-weight-medium);
    font-size: 12px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.processing-file-item .processing-file-size {
    font-weight: var(--font-weight-regular);
    font-size: 10px;
    color: #6b7280;
}
.processing-file-item .processing-file-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.processing-file-status-icon {
    font-size: 12px;
    line-height: 1;
}
/* Document Ready Notification */
.document-ready-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 10003;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    max-width: 320px;
    width: auto;
    border: 1px solid #a7f3d0;
    height: auto;
    min-height: auto;
    max-height: none;
    left: auto;
}
.document-ready-notification.show {
    transform: translateX(0);
}
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.notification-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.notification-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.notification-title {
    font-weight: var(--font-weight-semibold);
    font-size: 12px;
    color: #111827;
    line-height: 1.2;
}
.notification-message {
    font-weight: var(--font-weight-regular);
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}
/* Document Timeout Notification */
.document-timeout-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 10003;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    max-width: 320px;
    border: 1px solid #fecaca;
}
.document-timeout-notification.show {
    transform: translateX(0);
}
/* Document Failed Notification */
.document-failed-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 10003;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    max-width: 320px;
    border: 1px solid #fecaca;
}
.document-failed-notification.show {
    transform: translateX(0);
}
/* Mobile responsive adjustments for processing modal */
@media (max-width: 767.98px) {
    .processing-modal {
        width: 100%;
        padding: 10px;
    }
    .processing-modal-content {
        border-radius: 12px 12px 0 0;
        padding: 20px;
    }
    .processing-close-btn {
        width: 28px;
        height: 28px;
    }
}
/* Mobile responsive adjustments for notification */
@media (max-width: 767.98px) {
    .document-ready-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(100px);
        width: auto;
        height: auto;
    }
    .document-ready-notification.show {
        transform: translateY(0);
    }
    .document-timeout-notification,
    .document-failed-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    .document-timeout-notification.show,
    .document-failed-notification.show {
        transform: translateY(0);
    }
}