 * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      /* body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        padding: 40px 20px;
      } */

      .container {
        max-width: 900px;
        margin: 0 auto;
      }

      h1 {
        color: #fff;
        text-align: center;
        margin-bottom: 40px;
        font-size: 32px;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }

      .upload-section {
        background: #fff;
        border-radius: 16px;
        padding: 5px;
        margin-bottom: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      }

      .section-title {
        font-size: 18px;
        color: #333;
        margin-bottom: 20px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .section-title svg {
        width: 24px;
        height: 24px;
        color: #667eea;
      }

      .upload-area {
        border: 2px dashed #d1d5db;
        border-radius: 12px;
        padding: 0px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #f9fafb;
      }

      .upload-area:hover {
        border-color: #667eea;
        background: #f0f4ff;
      }

      .upload-area.dragover {
        border-color: #667eea;
        background: #eef2ff;
        transform: scale(1.01);
      }

      .upload-icon {
        width: 36px;
        height: 36px;
        margin: 0 auto 0px;
        color: #667eea;
      }

      .upload-text {
        font-size: 16px;
        color: #6b7280;
        margin-bottom: 0px;
      }

      .upload-text strong {
        color: #667eea;
      }

      .upload-hint {
        font-size: 14px;
        color: #9ca3af;
      }

      .file-input {
        display: none;
      }

      .preview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
        margin-top: 10px;
      }

      .preview-item {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #f3f4f6;
        aspect-ratio: 1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      .preview-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
      }

      .preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .preview-item .file-icon {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px;
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
      }

      .preview-item .file-icon svg {
        width: 48px;
        height: 48px;
        color: #6b7280;
        margin-bottom: 8px;
      }

      .preview-item .file-icon .file-name {
        font-size: 12px;
        color: #6b7280;
        text-align: center;
        word-break: break-all;
        line-height: 1.3;
        max-height: 2.6em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }

      .delete-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(239, 68, 68, 0.9);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
      }

      .preview-item:hover .delete-btn {
        opacity: 1;
      }

      .delete-btn:hover {
        transform: scale(1.1);
        background: #dc2626;
      }

      .delete-btn svg {
        width: 16px;
        height: 16px;
        color: #fff;
      }

      .file-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        color: #fff;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.2s ease;
      }

      .preview-item:hover .file-info {
        opacity: 1;
      }

      .file-name-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .file-size-text {
        font-size: 11px;
        opacity: 0.8;
      }

      .empty-state {
        text-align: center;
        padding: 0px;
        color: #9ca3af;
      }

      .empty-state svg {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        opacity: 0.5;
      }

      .file-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
      }

      .file-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: #f9fafb;
        border-radius: 10px;
        transition: background 0.2s ease;
      }

      .file-item:hover {
        background: #f3f4f6;
      }

      .file-item .file-icon-wrapper {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }

      .file-item .file-icon-wrapper svg {
        width: 20px;
        height: 20px;
        color: #fff;
      }

      .file-item .file-details {
        flex: 1;
        min-width: 0;
      }

      .file-item .file-details .name {
        font-size: 14px;
        color: #333;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .file-item .file-details .size {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 2px;
      }

      .file-item .remove-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
        flex-shrink: 0;
      }

      .file-item .remove-btn:hover {
        background: #fee2e2;
      }

      .file-item .remove-btn svg {
        width: 18px;
        height: 18px;
        color: #ef4444;
      }