@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    min-height: 100vh;
    padding: 12px;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.header-logo {
    height: 8.4em; /* 2x bigger (4.2em * 2) */
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    max-width: 100%;
}

.header-text {
    flex: 1;
    text-align: center;
    min-width: 0;
    width: 100%;
}

h1 {
    text-align: center;
    color: #1e3a5f; /* Match logo dark blue color */
    margin-bottom: 8px;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 0;
    font-size: 1.1em;
    font-weight: 400;
}

.help-text {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 400;
}

h2 {
    color: #0f172a;
    margin-bottom: 16px;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 28px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #cbd5e1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #475569;
    font-size: 0.95em;
    letter-spacing: -0.2px;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #0f172a;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.datetime-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.datetime-group input[type="date"],
.datetime-group input[type="time"] {
    flex: 1;
}

.pdf-list-container {
    margin-bottom: 28px;
}

.search-container {
    margin-bottom: 16px;
    padding: 0 4px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #0f172a;
}

.search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.clear-search-btn:hover {
    background: #f1f5f9;
    color: #64748b;
}

.clear-search-btn:active {
    background: #e2e8f0;
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    min-width: auto;
    font-weight: 500;
}

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 450px;
    overflow-y: auto;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.pdf-list::-webkit-scrollbar {
    width: 8px;
}

.pdf-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.pdf-list::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.pdf-list::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.pdf-item {
    padding: 12px 16px;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 3px rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    width: 100%;
}

.pdf-item:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.2);
    background: #f0f9ff;
}

.pdf-item.selected {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.pdf-item .order-number {
    background: #10b981;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.pdf-item-name {
    font-size: 15px;
    word-break: break-word;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

.pdf-preview-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    margin-left: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.pdf-preview-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

.pdf-item.selected .pdf-preview-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.pdf-item.selected .pdf-preview-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.selected-container {
    margin-bottom: 28px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #cbd5e1;
}

.selected-list {
    min-height: 70px;
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.selected-list.drag-active {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.selected-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    font-weight: 500;
    width: 100%;
    cursor: move;
    gap: 12px;
    position: relative;
    touch-action: none; /* Prevent default touch behaviors for drag and drop */
    -webkit-user-select: none;
    user-select: none;
}

.selected-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.selected-item.dragging {
    opacity: 0.6;
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5);
    z-index: 1000;
    transition: none; /* Disable transition during drag for smooth movement */
}

.selected-item.drag-over {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.selected-item.drag-over-top {
    border-top: 4px solid #fbbf24;
    margin-top: 12px;
    padding-top: 14px;
}

.selected-item.drag-over-top::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

.selected-item.drag-over-bottom {
    border-bottom: 4px solid #fbbf24;
    margin-bottom: 12px;
    padding-bottom: 14px;
}

.selected-item.drag-over-bottom::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
}

.momento-input {
    flex: 0 0 150px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.momento-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.momento-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.pdf-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.local-pdf-badge {
    font-size: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

.selected-item .drag-handle {
    margin-right: 12px;
    font-size: 18px;
    cursor: grab;
    user-select: none;
    opacity: 0.7;
    flex-shrink: 0;
}

.selected-item .drag-handle:active {
    cursor: grabbing;
}

.selected-item .order-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.remove-item-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.remove-item-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.selected-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.action-container {
    text-align: center;
    margin-top: 28px;
}

.btn {
    padding: 16px 32px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    min-width: 240px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    touch-action: manipulation; /* Prevents double-tap zoom */
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-secondary {
    background: #64748b;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    min-width: auto;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
    font-size: 1.1em;
    font-weight: 500;
}

.loading.hidden {
    display: none;
}

.loading-content {
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

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

.progress-text {
    font-size: 1em;
    font-weight: 500;
    color: white;
    margin: 0;
    text-align: center;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

/* Don't apply fade-in-up to pdf-item to prevent disappearing */
.pdf-item.fade-in-up {
    opacity: 1;
    animation: none;
}

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

.pulse-on-ready {
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced transitions */
.pdf-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-item:hover {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.selected-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.selected-item:hover {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover:not(:disabled) {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Success animation for selected items */
.pdf-item.selected {
    animation: fadeInUp 0.3s ease-out;
}

/* Smooth scroll */
.pdf-list {
    scroll-behavior: smooth;
}

/* Button click animation */
.btn:active:not(:disabled) {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Remove button hover animation */
.remove-item-btn:hover {
    animation: shake 0.5s ease;
}

/* Container entrance animation */
.container {
    animation: fadeInUp 0.6s ease-out;
}

/* Header animation */
.header {
    animation: fadeInUp 0.5s ease-out 0.1s backwards;
}

/* Controls animation */
.controls {
    animation: fadeInUp 0.5s ease-out 0.2s backwards;
}

/* PDF list container animation */
.pdf-list-container {
    animation: fadeInUp 0.5s ease-out 0.3s backwards;
}

/* Selected container animation */
.selected-container {
    animation: fadeInUp 0.5s ease-out 0.4s backwards;
}

/* Action container animation */
.action-container {
    animation: fadeInUp 0.5s ease-out 0.5s backwards;
}

/* iPad optimizations */
@media (max-width: 1024px) and (min-width: 768px) {
    body {
        padding: 16px;
    }
    
    .container {
        padding: 28px;
        border-radius: 20px;
    }
    
    .controls {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }
    
    .header {
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .header-logo {
        height: 7em;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .selected-actions {
        gap: 10px;
    }
    
    .btn-small {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Phone optimizations */
@media (max-width: 767px) {
    body {
        padding: 8px;
    }
    
    .container {
        padding: 16px;
        border-radius: 16px;
    }
    
    .header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .header-logo {
        height: 5em;
    }
    
    .header-text {
        width: 100%;
    }
    
    h1 {
        font-size: 1.5em;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 0.95em;
    }
    
    .controls {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .datetime-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .datetime-group input[type="date"],
    .datetime-group input[type="time"] {
        width: 100%;
    }
    
    .pdf-list-container {
        margin-bottom: 24px;
    }
    
    .pdf-list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pdf-list-header h2 {
        font-size: 1.3em;
        margin-bottom: 0;
    }
    
    .pdf-list {
        max-height: 350px;
        padding: 10px;
    }
    
    .pdf-item {
        padding: 14px 16px;
        min-height: 60px;
    }
    
    .pdf-item-name {
        font-size: 14px;
    }
    
    .selected-container {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .selected-container h2 {
        font-size: 1.3em;
    }
    
    .selected-list {
        padding: 12px;
        min-height: 60px;
    }
    
    .selected-item {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .momento-input {
        flex: 0 0 120px;
        font-size: 13px;
        padding: 6px 8px;
    }
    
    .selected-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .selected-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .action-container {
        margin-top: 24px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
        padding: 16px 24px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .btn-small {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }
    
    h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .help-text {
        font-size: 0.85em;
        margin-bottom: 10px;
    }
}

/* Touch-friendly sizing for all touch devices */
@media (hover: none) and (pointer: coarse) {
    .pdf-item {
        min-height: 60px;
        padding: 14px 16px;
    }
    
    .btn {
        min-height: 48px;
        padding: 16px 24px;
    }
    
    .btn-small {
        min-height: 44px;
        padding: 12px 18px;
    }
    
    .form-group input {
        padding: 14px 16px;
        min-height: 48px;
    }
    
    .selected-item {
        min-height: 48px;
        padding: 12px 14px;
    }
    
    .remove-item-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .clear-search-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Landscape phone optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .pdf-list {
        max-height: 250px;
    }
    
    .header-logo {
        height: 4em;
    }
    
    h1 {
        font-size: 1.3em;
    }
}

/* PDF Preview Modal */
.pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdf-preview-modal.hidden {
    display: none;
}

.pdf-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.pdf-preview-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.pdf-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.pdf-preview-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
}

.pdf-preview-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pdf-preview-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.pdf-preview-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    min-height: 0;
}

.pdf-preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
}

@media (max-width: 768px) {
    .pdf-preview-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .pdf-preview-header {
        padding: 12px 16px;
    }
    
    .pdf-preview-header h3 {
        font-size: 16px;
    }
    
    .pdf-preview-content iframe {
        min-height: 400px;
    }
}
