/**
 * PDF-Ninja.io - File Sharing Styles (WeTransfer-inspired)
 * Modern, clean design with beautiful backgrounds
 */

/* ========================================
   Share Page - Full Screen Background
   ======================================== */

.share-page {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    animation: bgFadeIn 1.5s ease;
}

.share-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 0;
}

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

/* ========================================
   Floating Navigation
   ======================================== */

.share-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 1rem 2rem;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.share-nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: opacity 0.2s ease;
}

.share-nav-link:hover {
    opacity: 0.8;
}

.share-nav-user {
    color: white;
    font-size: 0.85rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* ========================================
   Share Card - Main Container
   ======================================== */

.share-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: cardSlideUp 0.6s ease;
}

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

[data-theme="dark"] .share-card {
    background: rgba(18, 18, 42, 0.95);
}

.share-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.share-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.share-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Upload Dropzone
   ======================================== */

.upload-dropzone {
    border: 3px dashed var(--border-secondary);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-accent);
    position: relative;
    overflow: hidden;
}

.upload-dropzone:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.upload-dropzone.dragover {
    border-color: var(--accent-primary);
    background: rgba(99, 91, 255, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(99, 91, 255, 0.3);
}

.upload-dropzone.has-files {
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.upload-dropzone.processing {
    border-color: #f59e0b;
    pointer-events: none;
    opacity: 0.7;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.upload-dropzone:hover .upload-icon {
    transform: scale(1.1);
}

.upload-dropzone-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-dropzone-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-input {
    display: none;
}

/* ========================================
   File List
   ======================================== */

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    gap: 1rem;
    animation: fileSlideIn 0.3s ease;
}

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

.file-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.file-icon svg {
    width: 24px;
    height: 24px;
}

.file-icon.archive {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.file-archive-info {
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-top: 0.15rem;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.file-status.uploading {
    color: var(--accent-primary);
}

.file-status.complete {
    color: var(--accent-success);
}

.file-status.complete svg {
    width: 20px;
    height: 20px;
}

.progress-ring {
    width: 28px;
    height: 28px;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
}

.progress-ring circle {
    transition: stroke-dashoffset 0.3s ease;
}

/* Per-file progress bar */
.file-progress-bar {
    height: 4px;
    background: rgba(99, 91, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.file-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #635bff, #ff5e9c);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Validating state - indeterminate progress bar */
.file-validating-bar {
    height: 4px;
    background: rgba(99, 91, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.4rem;
    position: relative;
}

.file-validating-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #635bff, #ff5e9c, transparent);
    border-radius: 2px;
    animation: validatingSlide 1.2s ease-in-out infinite;
}

@keyframes validatingSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

.file-item.is-validating {
    border-left: 3px solid #f59e0b;
}

.file-item.is-uploading {
    border-left: 3px solid #635bff;
}

.file-item.is-complete {
    border-left: 3px solid var(--accent-success, #10b981);
}

.file-item.is-validating .file-size {
    color: #f59e0b;
    font-weight: 500;
}

.file-item.is-uploading .file-size {
    color: #635bff;
    font-weight: 500;
}

/* Spinner for validating state */
.file-spinner {
    width: 22px;
    height: 22px;
    animation: spin 0.8s linear infinite;
    color: #f59e0b;
}

.file-status.validating {
    color: #f59e0b;
}

.file-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    color: var(--accent-error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-remove svg {
    width: 16px;
    height: 16px;
}

.file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* ========================================
   Form Fields
   ======================================== */

.share-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Email tags input */
.email-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    min-height: 48px;
    cursor: text;
}

.email-tags-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
}

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    animation: tagPop 0.2s ease;
}

@keyframes tagPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.email-tag-remove {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.email-tag-remove:hover {
    color: var(--accent-error);
}

.email-tags-input {
    flex: 1;
    min-width: 150px;
    border: none;
    background: transparent;
    padding: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.email-tags-input:focus {
    outline: none;
}

/* Password toggle */
.password-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.password-toggle:hover {
    background: var(--bg-hover);
}

.password-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

.password-toggle-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.password-toggle-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.password-field {
    margin-top: 0.75rem;
    display: none;
}

.password-field.visible {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

/* Premium badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--gradient-warning);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

/* ========================================
   Progress Bar
   ======================================== */

.upload-progress-container {
    margin-top: 1.5rem;
    display: none;
}

.upload-progress-container.visible {
    display: block;
}

.upload-progress {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.upload-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   Upload Overlay with SVG Spinner
   ======================================== */

.upload-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: overlayFadeIn 0.3s ease;
}

.upload-overlay.visible {
    display: flex;
}

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

.upload-overlay-content {
    text-align: center;
    color: white;
    max-width: 450px;
    width: 90%;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Circular Spinner with Progress */
.upload-spinner {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.spinner-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.spinner-progress {
    fill: none;
    stroke: url(#spinner-gradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

.spinner-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #635bff, #ff5e9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.3);
    animation: uploadBounce 1.5s ease-in-out infinite;
    display: none;
}

.upload-overlay.uploading .spinner-icon {
    display: block;
}

.upload-overlay.uploading .spinner-percent {
    display: none;
}

.upload-overlay.progress .spinner-icon {
    display: none;
}

.upload-overlay.progress .spinner-percent {
    display: block;
}

@keyframes uploadBounce {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
}

/* Upload Status Text */
.upload-status {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
    letter-spacing: -0.02em;
}

.upload-file-name {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 1rem;
}

/* Progress Bar in Overlay */
.upload-progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.upload-progress-bar-container .upload-progress-bar,
.upload-overlay .upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #635bff, #ff5e9c, #f97316);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.upload-speed {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Success State */
.upload-overlay.success .upload-spinner {
    animation: successPulse 0.5s ease;
}

.upload-overlay.success .spinner-progress {
    stroke: #10b981;
    stroke-dashoffset: 0;
}

.upload-overlay.success .spinner-percent {
    display: none;
}

.upload-overlay.success .spinner-icon {
    display: block;
    color: #10b981;
    animation: none;
}

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

/* Error State */
.upload-overlay.error .spinner-progress {
    stroke: #ef4444;
}

.upload-overlay.error .spinner-percent {
    -webkit-text-fill-color: #ef4444;
}

/* ========================================
   Disclaimer
   ======================================== */

.share-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 3px solid var(--accent-warning, #f59e0b);
}

.share-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.share-disclaimer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.share-disclaimer a:hover {
    text-decoration: underline;
}

/* ========================================
   Transfer Button
   ======================================== */

.transfer-btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.transfer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 91, 255, 0.4);
}

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

.transfer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.transfer-btn.loading {
    pointer-events: none;
}

.transfer-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Success Screen
   ======================================== */

.share-success {
    text-align: center;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.share-link-container {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-link-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.copy-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.copy-btn.copied {
    background: var(--gradient-success);
}

.share-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.share-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-transfer-btn {
    padding: 0.875rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-transfer-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

/* ========================================
   Download Page Specific
   ======================================== */

.download-card {
    max-width: 600px;
}

.download-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sender-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sender-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.sender-name {
    font-weight: 600;
    color: var(--text-primary);
}

.download-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-message {
    color: var(--text-secondary);
    font-style: italic;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-top: 1rem;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-file-list {
    margin-bottom: 1.5rem;
}

.download-file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    gap: 1rem;
    transition: all 0.2s ease;
}

.download-file-item:hover {
    background: var(--bg-hover);
}

.download-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-all-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 91, 255, 0.4);
}

/* Password form */
.password-form {
    text-align: center;
    padding: 2rem;
}

.password-form .form-input {
    margin-bottom: 1rem;
}

.password-error {
    color: var(--accent-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Expired/Not found states */
.error-state {
    text-align: center;
    padding: 2rem;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--text-secondary);
}

/* ========================================
   Background Credit
   ======================================== */

.bg-credit {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    z-index: 10;
}

.bg-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
    .share-page {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .share-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .upload-dropzone {
        padding: 2rem 1rem;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .share-title {
        font-size: 1.4rem;
    }

    .file-item {
        padding: 0.75rem;
    }

    .file-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .share-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .download-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ========================================
   Login Required Modal
   ======================================== */

.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.login-required-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: cardSlideUp 0.4s ease;
}

.login-required-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.login-required-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-required-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.login-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 91, 255, 0.4);
}

.register-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}
