@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/materialicons/v145/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2') format('woff2');
}

@font-face {
    font-family: 'Ubuntu Mono' !important;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/ubuntumono/v19/KFO-CneDtsqEr0keqCMhbC-BL9H1tY0.woff2') format('woff2');
}

@font-face {
    font-family: 'Ubuntu Mono' !important;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/ubuntumono/v19/KFOjCneDtsqEr0keqCMhbCc6CsQ.woff2') format('woff2');
}

body.uploader-page {
    background-color: #f0f0f0;
    opacity: 0;
    animation: fade-in var(--duration-base) var(--ease-smooth) forwards;
}

body.uploader-page {
    font-family: 'Ubuntu Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 14px !important;
    line-height: 1.58 !important;
    font-weight: 500 !important;
}

body.uploader-page *:not(.material-icons) {
    font-weight: 500 !important;
}

body.uploader-page .text-\[10px\] {
    font-size: 11px !important;
}

body.uploader-page .text-\[11px\] {
    font-size: 12px !important;
}

body.uploader-page .text-xs {
    font-size: 0.85rem !important;
}

body.uploader-page .text-sm {
    font-size: 0.95rem !important;
}

body.uploader-page .text-base {
    font-size: 1.05rem !important;
}

body.uploader-page .text-lg {
    font-size: 1.15rem !important;
}

body.uploader-page .text-xl {
    font-size: 1.25rem !important;
}

body.uploader-page .text-4xl {
    font-size: 2.1rem !important;
}

body.uploader-page .material-icons {
    font-family: 'Material Icons' !important;
    transition: transform var(--duration-base) var(--ease-smooth), color var(--duration-short) var(--ease-smooth);
    will-change: transform;
}

body.uploader-page a,
body.uploader-page button {
    transition: transform var(--duration-short) var(--ease-smooth), background-color var(--duration-short) var(--ease-smooth), color var(--duration-short) var(--ease-smooth), border-color var(--duration-short) var(--ease-smooth);
}

body.uploader-page button:hover .material-icons,
body.uploader-page a:hover .material-icons {
    transform: translateY(-2px);
}

body.uploader-page #dropZone {
    border: 2px dashed #cbd5e1 !important;
    transition: border-color var(--duration-short) var(--ease-smooth), background-color var(--duration-short) var(--ease-smooth);
}

body.uploader-page #dropZone:hover {
    border-color: #94a3b8 !important;
}

body.uploader-page #dropZone.dragover {
    border-color: #000000 !important;
    background-color: #f8f9fa;
}

body.uploader-page #dropZone.dragover .material-icons {
    color: #000000;
    transform: scale(1.1);
}

body.uploader-page .file-item {
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--duration-short) var(--ease-smooth);
    width: 100%;
    font-size: 11px !important;
}

body.uploader-page .file-item:hover {
    border-color: rgba(15, 23, 42, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.uploader-page .file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

body.uploader-page .file-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

body.uploader-page .file-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 9px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    margin: 4px 0 8px;
}

body.uploader-page .file-preview-icon {
    font-size: 26px;
    color: #1e293b;
}

body.uploader-page .file-name {
    font-size: 12px !important;
    font-weight: 500;
    color: #1e293b;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

body.uploader-page .file-size {
    font-size: 10px !important;
    color: #64748b;
    white-space: nowrap;
    width: 100%;
    margin-top: 1px;
}

body.uploader-page .file-mimetype {
    font-size: 9px !important;
    color: #94a3b8;
    white-space: nowrap;
    display: inline-block;
    margin-top: 2px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 2px;
    max-width: 100%;
}

body.uploader-page .button-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

body.uploader-page .upload-btn {
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 12px !important;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--duration-short) var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.uploader-page .upload-btn:hover {
    background: #0f172a;
}

body.uploader-page .cancel-btn {
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 12px !important;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--duration-short) var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.uploader-page .cancel-btn:hover {
    background: #4b5563;
}

body.uploader-page .file-item {
    animation: fadeInSlide 0.3s var(--ease-smooth) forwards;
}

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

@media (max-width: 640px) {
    body.uploader-page .file-name {
        font-size: 10px;
    }
    
    body.uploader-page .file-size {
        font-size: 9px;
    }
    
    body.uploader-page .file-preview-icon {
        font-size: 20px;
    }
    
    body.uploader-page .upload-btn,
    body.uploader-page .cancel-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    body.uploader-page .file-item {
        padding: 8px 10px;
    }
    
    body.uploader-page .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    body.uploader-page .upload-btn,
    body.uploader-page .cancel-btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 4px;
    }
}

body.uploader-page .progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

body.uploader-page .progress-fill {
    height: 100%;
    background-color: #000000;
    transition: width var(--duration-base) var(--ease-smooth);
    border-radius: 3px;
}

body.uploader-page .upload-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

body.uploader-page .status-text {
    font-size: 10px;
    color: #64748b;
}

body.uploader-page .status-percentage {
    font-size: 10px;
    font-weight: 500;
    color: #1e293b;
}

body.uploader-page .uploaded-item {
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--duration-short) var(--ease-smooth);
    font-size: 12px !important;
}

body.uploader-page .uploaded-item:hover {
    border-color: rgba(15, 23, 42, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.uploader-page .uploaded-info {
    display: flex;
    align-items: flex-start;
    flex: 1;
    position: relative;
    min-width: 0;
}

body.uploader-page .uploaded-icon {
    margin-right: 14px;
    margin-top: 4px;
    color: #1e293b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px !important;
    flex-shrink: 0;
}

body.uploader-page .uploaded-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.uploader-page .uploaded-name {
    font-size: 13px !important;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.uploader-page .uploaded-mimetype {
    font-size: 10px !important;
    color: #94a3b8;
    white-space: nowrap;
    display: inline-block;
    margin-top: 2px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 2px;
    max-width: fit-content;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    width: max-content;
}

body.uploader-page .uploaded-url {
    font-size: 10px !important;
    color: #3b82f6;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.uploader-page .button-group {
    display: flex;
    gap: 4px;
}

body.uploader-page .copy-button {
    background: #f1f5f9;
    color: #94a3b8;
    border: none;
    border-radius: 4px;
    padding: 4px;
    font-size: 10px !important;
    cursor: pointer;
    transition: background-color var(--duration-short) var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    position: absolute;
    top: -2px;
    right: 36px;
    z-index: 10;
}

body.uploader-page .delete-button {
    background: #f1f5f9;
    color: #94a3b8;
    border: none;
    border-radius: 4px;
    padding: 4px;
    font-size: 10px !important;
    cursor: pointer;
    transition: background-color var(--duration-short) var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    position: absolute;
    top: -2px;
    right: 8px;
    z-index: 10;
}

body.uploader-page #dropZone button {
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px !important;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--duration-short) var(--ease-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.uploader-page .delete-button:hover {
    background: #e2e8f0;
}

body.uploader-page .copy-button:hover {
    background: #e2e8f0;
}

body.uploader-page .copy-button.copied {
    background: #f1f5f9;
}

body.uploader-page .delete-button span.material-icons,
body.uploader-page .copy-button span.material-icons {
    font-size: 14px !important;
}

body.uploader-page .error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    display: flex;
    align-items: center;
}

body.uploader-page .error-icon {
    color: #ef4444;
    margin-right: 8px;
}

body.uploader-page .error-text {
    font-size: 10px;
    color: #991b1b;
}

body.uploader-page .success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    display: flex;
    align-items: center;
}

body.uploader-page .success-icon {
    color: #10b981;
    margin-right: 8px;
}

body.uploader-page .success-text {
    font-size: 10px;
    color: #166534;
}

@media (prefers-reduced-motion: reduce) {
    body.uploader-page {
        animation: none;
        opacity: 1;
    }

    body.uploader-page *,
    body.uploader-page *::before,
    body.uploader-page *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    body.uploader-page [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}

.spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

:root {
  --duration-base: 0.4s;
  --duration-short: 0.2s;
  --ease-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: 
    opacity var(--duration-base) var(--ease-smooth),
    transform var(--duration-base) var(--ease-smooth);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-animate-delay="80"] {
  transition-delay: 0.08s;
}

[data-animate][data-animate-delay="140"] {
  transition-delay: 0.14s;
}

[data-animate][data-animate-delay="200"] {
  transition-delay: 0.2s;
}

[data-animate][data-animate-delay="260"] {
  transition-delay: 0.26s;
}

[data-animate][data-animate-delay="320"] {
  transition-delay: 0.32s;
}

body {
  background-color: #f8fafc;
  opacity: 0;
  animation: fade-in var(--duration-base) var(--ease-smooth) forwards;
}

.wave-emoji {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.wave-emoji:hover {
  transform: rotate(20deg) translateX(5px);
}

.material-icons {
  font-family: 'Material Icons' !important;
  transition: transform var(--duration-base) var(--ease-smooth), color var(--duration-short) var(--ease-smooth);
  will-change: transform;
}

a:hover .material-icons,
button:hover .material-icons {
  transform: translateY(-2px);
}

body.uploader-page .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-short) var(--ease-smooth), visibility var(--duration-short) var(--ease-smooth);
}

body.uploader-page .modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

body.uploader-page .modal-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform var(--duration-short) var(--ease-smooth);
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

body.uploader-page .modal-overlay.show .modal-content {
  transform: scale(1);
}

body.uploader-page .modal-header {
  margin-bottom: 15px;
  max-width: 100%;
  overflow-wrap: break-word;
}

body.uploader-page .modal-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

body.uploader-page .modal-body {
  margin-bottom: 20px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

body.uploader-page .modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

body.uploader-page .modal-btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-short) var(--ease-smooth);
}

body.uploader-page .modal-btn.confirm {
  background: #dc2626;
  color: white;
}

body.uploader-page .modal-btn.confirm:hover {
  background: #b91c1c;
}

body.uploader-page .modal-btn.cancel {
  background: #e2e8f0;
  color: #475569;
}

body.uploader-page .modal-btn.cancel:hover {
  background: #cbd5e1;
}

button,
a {
  transition: 
    transform var(--duration-short) var(--ease-smooth),
    background-color var(--duration-short) var(--ease-smooth),
    color var(--duration-short) var(--ease-smooth),
    border-color var(--duration-short) var(--ease-smooth);
}
