/* SwiftShare - CSS Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tagline {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin: 0 auto;
}

.forgot-password-link {
    text-align: right;
    font-size: 0.85rem;
    color: #667eea;
    text-decoration: none;
    margin-top: -10px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    color: white;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-content a {
    color: #667eea;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-ghost-dark {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-ghost-dark:hover {
    background: rgba(255,255,255,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.input-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
}

.auth-footer p {
    color: #666;
    margin-bottom: 15px;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Download Page */
.download-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.download-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin: 0 auto;
}

.download-header {
    text-align: center;
    margin-bottom: 30px;
}

.download-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.download-icon-large svg {
    width: 40px;
    height: 40px;
}

.download-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.download-header p {
    color: #666;
}

.download-files {
    margin: 20px 0;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Password Prompt - Improved Design */
.password-prompt {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.08);
}

.password-prompt p {
    margin-bottom: 18px;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.password-prompt p svg {
    color: #667eea;
}

.password-input-group {
    display: flex;
    gap: 12px;
    background: white;
    padding: 6px;
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.password-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: transparent;
}

.password-input-group input:focus {
    outline: none;
}

.password-input-group input::placeholder {
    color: #aaa;
}

.password-input-group .btn {
    padding: 12px 24px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(17,153,142,0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-ghost {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-ghost:hover {
    background: rgba(102, 126, 234, 0.1);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-upgrade {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-danger {
    background: #ff6b6b !important;
    color: white;
}

/* User Header */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-badge.pro {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-actions .btn-small {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
}

.user-actions .btn-small:hover {
    background: rgba(255,255,255,0.3);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: white;
    color: #667eea;
}

.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.3);
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #667eea;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #764ba2;
    background: linear-gradient(135deg, rgba(102,126,234,0.12) 0%, rgba(118,75,162,0.12) 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.upload-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
}

.upload-icon svg {
    width: 45px;
    height: 45px;
}

.upload-area p {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.upload-area .or {
    color: #999;
    font-size: 0.9rem;
}

/* Upload Options */
.upload-options {
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.option-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.option-row-name {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.option-group {
    flex: 1;
    min-width: 200px;
}

.option-group-full {
    flex: 1 1 100%;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

/* Transfer Name Input */
.transfer-name-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.transfer-name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.transfer-name-input::placeholder {
    color: #aaa;
}

/* Password Toggle - Improved Design */
.password-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.password-toggle:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.password-toggle input[type="password"] {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background: transparent;
}

.password-toggle input[type="password"]:focus {
    outline: none;
}

.password-toggle input[type="password"]:disabled {
    background: transparent;
    color: #999;
}

.password-toggle input[type="password"]::placeholder {
    color: #bbb;
}

.option-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.pro-option {
    color: #999;
}

/* File List */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.15);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #667eea;
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.file-size {
    color: #888;
    font-size: 0.8rem;
}

.remove-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.remove-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Progress */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

/* Share Section */
.share-link-container {
    display: flex;
    gap: 10px;
}

.share-link-container input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: monospace;
    background: #f8f9fa;
}

.share-subtitle {
    color: #666;
    margin-bottom: 15px;
}

.success-message {
    color: #11998e;
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
}

/* Download Input */
.download-input {
    display: flex;
    gap: 10px;
}

.download-input input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
}

.download-input input:focus {
    outline: none;
    border-color: #667eea;
}

/* History */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.history-id {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1rem;
    color: #667eea;
}

.history-meta {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
}

.history-actions {
    display: flex;
    gap: 10px;
}

.history-actions .btn-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Pro Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.popup-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.popup-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.popup-price {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
}

.popup-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

.popup-features {
    margin: 25px 0;
}

.feature-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item strong {
    color: #333;
}

.popup-note {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Stripe Pricing Table Styles */
.popup-card-stripe {
    max-width: 500px;
    padding: 30px;
}

#stripe-pricing-container {
    margin: 20px 0;
    min-height: 200px;
}

#stripe-pricing-container stripe-pricing-table {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.8);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Utility */
.file-limit {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 15px;
}

.upgrade-link {
    color: #667eea;
    cursor: pointer;
    font-weight: 500;
}

.upgrade-link:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.error-text {
    color: #ff6b6b;
}

.empty-state, .loading {
    text-align: center;
    color: #888;
    padding: 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .auth-card, .download-card, .popup-card {
        padding: 25px;
    }
    
    .share-link-container,
    .download-input {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .history-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .history-actions {
        width: 100%;
    }
    
    .history-actions .btn-small {
        flex: 1;
    }
    
    .user-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .option-row {
        flex-direction: column;
    }
    
    .password-input-group {
        flex-direction: column;
    }
}
