* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.usage-info {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

#usage-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.upgrade-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.upgrade-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

main {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.paste-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.result {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.result h3 {
    color: #28a745;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.url-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.url-display input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: monospace;
    background: #f8f9fa;
}

.expiry-info {
    color: #666;
    margin-bottom: 1.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: white;
    opacity: 0.8;
}

/* Paste view styles */
.paste-content {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.paste-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.countdown {
    text-align: center;
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .url-display {
        flex-direction: column;
    }
    
    .paste-actions {
        flex-direction: column;
    }
}

/* Syntax highlighting styles */
.paste-content pre {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.paste-content code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Password form styles */
.password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.password-form input {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
}

.password-form input:focus {
    outline: none;
    border-color: #007bff;
}

/* Paste meta styles */
.paste-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.paste-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Dark mode styles */
.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dark-mode .paste-form {
    background: #2d3748;
    color: white;
}

.dark-mode textarea {
    background: #4a5568;
    color: white;
    border-color: #718096;
}

.dark-mode select,
.dark-mode input {
    background: #4a5568;
    color: white;
    border-color: #718096;
}

.dark-mode .paste-content {
    background: #2d3748;
    color: white;
}

.dark-mode .result {
    background: #2d3748;
    color: white;
}

.dark-mode .url-display input {
    background: #4a5568;
    color: white;
    border-color: #718096;
}

/* Dark mode toggle button */
.dark-mode-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.login-btn, .logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.login-btn:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* File upload styles */
.file-upload {
    margin-top: 0.5rem;
}

.file-name {
    margin-left: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.dark-mode .file-name {
    color: #a0aec0;
}

/* QR code styles */
.qr-code-container {
    text-align: center;
    margin: 1rem 0;
}

.qr-code-container canvas {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 auto 1rem;
}

.dark-mode .qr-code-container canvas {
    border-color: #718096;
} 