* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root, [data-theme="dark"] {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary: #64748b;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --bg: #0a0e1a;
    --bg-light: #1e293b;
    --bg-lighter: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.2);
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(148, 163, 184, 0.1);
    --accent: #ec4899;
    --accent-secondary: #06b6d4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    background-image: 
        radial-gradient(at 20% 80%, rgba(139, 92, 246, 0.05) 0, transparent 50%),
        radial-gradient(at 80% 20%, rgba(6, 182, 212, 0.05) 0, transparent 50%),
        radial-gradient(at 40% 40%, rgba(236, 72, 153, 0.03) 0, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

main {
    flex: 1;
    display: flex;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

h1:hover {
    filter: brightness(1.2);
}

nav {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    min-height: 44px; /* Touch-friendly minimum height */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(100, 116, 139, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
}

.btn-success:active {
    transform: translateY(0) scale(0.98);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-hover) 100%);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
}

.btn-danger:active {
    transform: translateY(0) scale(0.98);
}

/* Editor */
.editor-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 120px);
    border: 1px solid var(--glass-border);
    transition: box-shadow 0.3s ease;
}

.editor-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.editor-header {
    padding: 16px 24px;
    background: rgba(30, 41, 59, 0.3);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stats {
    display: flex;
    gap: 32px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stats strong {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.stats:hover strong {
    color: var(--primary);
}

.editor-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    padding: 24px 12px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 24px;
    text-align: right;
    user-select: none;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0.7;
    border-right: 1px solid var(--glass-border);
    white-space: pre;
    scrollbar-width: none;
}

.line-numbers::-webkit-scrollbar {
    display: none;
}

#pasteContent {
    width: 100%;
    height: 100%;
    padding: 24px 24px 24px 70px;
    background: rgba(15, 23, 42, 0.3);
    color: var(--text);
    border: none;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    line-height: 24px;
    resize: none;
    overflow-y: auto;
    display: block;
}

#pasteContent:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.5);
}

/* Edit mode textarea */
textarea.paste-textarea,
#editContent {
    width: 100%;
    min-height: 500px;
    height: 500px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.8) !important;
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #f1f5f9 !important;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace !important;
    font-size: 15px !important;
    line-height: 24px !important;
    resize: vertical;
    box-sizing: border-box;
    -webkit-text-fill-color: #f1f5f9 !important;
    display: block;
    margin: 0;
}

textarea.paste-textarea:focus,
#editContent:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#editContainer {
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

#editContainer .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    min-width: 120px;
}

#editContainer button {
    cursor: pointer;
}

.editor-footer {
    padding: 20px 24px;
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 11px;
}

.option-group select {
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 44px; /* Touch-friendly */
    -webkit-tap-highlight-color: transparent;
}

.option-group input[type="number"],
.option-group input[type="password"] {
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: text;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 44px; /* Touch-friendly */
    -webkit-tap-highlight-color: transparent;
}

.option-group select:hover,
.option-group input[type="number"]:hover,
.option-group input[type="password"]:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
}

.option-group select:focus,
.option-group input[type="number"]:focus,
.option-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15),
                0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.option-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f1f5f9' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.option-group input[type="number"] {
    width: 120px;
}

.option-group input[type="password"] {
    width: 200px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 32px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--accent);
}

.link-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.link-container input {
    flex: 1;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    font-family: monospace;
    transition: all 0.3s ease;
}

.link-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    background: rgba(15, 23, 42, 0.7);
}

/* View Page */
#pasteView {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.paste-info {
    display: flex;
    gap: 32px;
    padding: 16px 24px;
    background: rgba(30, 41, 59, 0.3);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
}

.paste-info strong {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.3s ease;
}

.paste-info:hover strong {
    color: var(--primary);
}

pre {
    background: rgba(15, 23, 42, 0.3);
    overflow: visible;
    position: relative;
    margin: 0;
    display: block;
    border-radius: 0 0 20px 20px;
}

pre code {
    display: block;
    padding: 24px 24px 24px 70px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    line-height: 24px;
    counter-reset: line;
    width: fit-content;
    min-width: 100%;
}

pre code .line {
    display: block;
    counter-increment: line;
}

pre code .line::before {
    content: counter(line);
    display: inline-block;
    width: 40px;
    margin-left: -60px;
    margin-right: 20px;
    text-align: right;
    color: var(--text-muted);
    user-select: none;
    opacity: 0.6;
    font-size: 13px;
}

/* Password Prompt */
.password-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.password-box {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.password-box h2 {
    margin-bottom: 20px;
    color: var(--accent);
}

.password-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 14px;
}

/* Error View */
.error-view {
    text-align: center;
    padding: 60px 20px;
}

.error-view h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-view p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-message {
    color: var(--danger);
    margin-top: 10px;
    font-size: 14px;
}

/* Login */
.login-container {
    max-width: 550px;
    width: 90%;
    margin: 80px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 60px 70px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-container form .btn {
    width: 100%;
    margin-bottom: 15px;
}

.login-container > a.btn {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

/* Dashboard */
.dashboard {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 28px 32px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
}

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

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px var(--primary);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, var(--glass-bg) 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, var(--glass-bg) 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, var(--glass-bg) 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, var(--glass-bg) 100%);
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0);
}

.stat-card:hover .stat-value {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.stat-card:nth-child(2) .stat-value {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(3) .stat-value {
    background: linear-gradient(135deg, var(--accent-secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(4) .stat-value {
    background: linear-gradient(135deg, var(--success), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 8px;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.pastes-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    min-height: calc(100vh - 200px);
    transition: box-shadow 0.3s ease;
}

.pastes-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
                0 0 0 1px var(--glass-border),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.paste-item {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.paste-item:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.paste-item-info {
    flex: 1;
}

.paste-item-info p {
    margin: 5px 0;
    font-size: 14px;
}

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

.paste-preview {
    color: var(--text-muted);
    font-size: 12px;
    font-family: monospace;
    margin-top: 10px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    color: var(--text);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px var(--glass-border);
    border: 1px solid var(--glass-border);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 300px;
    max-width: 500px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.error {
    border-left: 4px solid var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--glass-bg) 50%);
}

.toast.success {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--glass-bg) 50%);
}

.toast.info {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, var(--glass-bg) 50%);
}

/* Drag and Drop */
.drag-over {
    border: 3px dashed var(--primary) !important;
    background: rgba(139, 92, 246, 0.1) !important;
    animation: dragPulse 2s ease-in-out infinite;
}

@keyframes dragPulse {
    0%, 100% {
        background: rgba(139, 92, 246, 0.1);
    }
    50% {
        background: rgba(139, 92, 246, 0.2);
    }
}

/* Keyboard shortcut helper */
kbd {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* Search bar */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Line highlighting (for view page) */
.hljs .line.highlighted {
    background: rgba(139, 92, 246, 0.2);
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header improvements */
    header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .logo {
        height: 32px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    nav .btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 90px;
    }

    /* Main content */
    main {
        padding: 15px;
    }

    /* Hide help button on mobile (keyboard shortcuts don't work on mobile) */
    #helpBtn {
        display: none;
    }

    /* Editor improvements */
    .editor-container {
        border-radius: 12px;
        padding: 15px;
    }

    textarea {
        font-size: 14px;
        min-height: 300px;
    }

    .options {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .option-group {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .option-group label {
        font-size: 13px;
    }

    .option-group input[type="password"],
    .option-group input[type="number"],
    .option-group select {
        width: auto;
        flex: 1;
        min-width: 120px;
        font-size: 14px;
    }

    .editor-footer {
        flex-direction: column;
        gap: 10px;
    }

    .editor-footer .btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Dashboard improvements */
    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch !important;
    }

    .dashboard-header h2 {
        font-size: 20px;
    }

    .dashboard-header > div {
        width: 100%;
    }

    .dashboard-header .btn {
        flex: 1;
        font-size: 13px;
        padding: 10px;
    }

    .search-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input {
        width: 100%;
        font-size: 14px;
    }

    .search-bar button {
        width: 100%;
    }

    /* Paste items */
    .paste-item {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
    }

    .paste-item h3 {
        font-size: 14px;
    }

    .paste-item p {
        font-size: 13px;
    }

    .paste-item-info {
        width: 100%;
    }

    .paste-item-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .paste-item .btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: calc(50% - 5px);
    }

    /* Code display */
    pre {
        font-size: 13px;
        padding: 15px;
        border-radius: 12px;
    }

    code {
        font-size: 13px;
    }

    /* Line numbers */
    .line-numbers {
        padding: 15px 10px;
        font-size: 12px;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Toast notifications */
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
        max-width: none;
        font-size: 14px;
        padding: 14px 18px;
    }

    /* Pagination */
    .pagination {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination button {
        padding: 8px 14px;
        font-size: 13px;
    }

    .pagination span {
        font-size: 13px;
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 8px;
    }

    /* Password prompt */
    .password-prompt {
        padding: 20px;
    }

    .password-prompt input {
        font-size: 14px;
        padding: 12px;
    }

    /* Edit container */
    .edit-container {
        padding: 15px;
    }

    .edit-container textarea {
        font-size: 14px;
    }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    main {
        padding: 20px 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* API Documentation Footer */
.api-docs {
    background: var(--bg-light);
    border-top: 2px solid var(--primary);
    padding: 50px 40px;
    margin-top: 60px;
}

.api-docs h2 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.api-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.api-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.api-section h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-section h4 {
    color: var(--text);
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.api-section p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.7;
}

.api-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.api-section li {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg);
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid var(--primary);
}

.method {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-post {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.method-get {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.api-endpoint code {
    color: var(--accent-secondary);
    font-size: 15px;
    font-weight: 600;
}

.api-section pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 12px 0;
}

.api-section pre code {
    color: var(--text);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre;
}

.api-section code {
    background: var(--bg);
    color: var(--accent-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
}

.error-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.error-table th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.error-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.error-table tr:last-child td {
    border-bottom: none;
}

.error-table code {
    font-size: 12px;
}

.api-footer {
    text-align: center;
    padding: 30px 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

.api-footer p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 14px;
}

.api-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.api-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Mobile adjustments for API docs */
@media (max-width: 768px) {
    .api-docs {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .api-docs h2 {
        font-size: 24px;
    }

    .api-subtitle {
        font-size: 14px;
    }

    .api-section {
        padding: 20px;
    }

    .api-section h3 {
        font-size: 18px;
    }

    .api-section h4 {
        font-size: 14px;
    }

    .api-endpoint {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .api-section pre {
        padding: 15px;
        font-size: 12px;
    }

    .api-section pre code {
        font-size: 11px;
    }

    .error-table {
        font-size: 12px;
    }

    .error-table th,
    .error-table td {
        padding: 10px;
        font-size: 12px;
    }

    /* Make table scrollable on mobile */
    .api-section {
        overflow-x: auto;
    }
}

/* Site Footer */
.site-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    padding: 30px 40px;
    margin-top: auto;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.footer-links .separator {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
}

.footer-copyright p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-copyright strong {
    color: var(--primary);
    font-weight: 600;
}

.footer-copyright a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.footer-license {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links .separator {
        display: none;
    }

    .footer-copyright p {
        font-size: 13px;
    }

    .footer-license {
        font-size: 11px;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-lighter) 0%,
        var(--bg-light) 50%,
        var(--bg-lighter) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 15px;
}

.skeleton-button {
    height: 40px;
    width: 100px;
    display: inline-block;
    margin-right: 10px;
}

.skeleton-stats {
    height: 100px;
    margin-bottom: 20px;
}

.skeleton-paste {
    height: 150px;
    margin-bottom: 20px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: flex;
}

.language-switcher .btn {
    display: inline-flex;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgb(30, 41, 59);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-option:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.language-option.active {
    background: rgba(139, 92, 246, 0.2);
    font-weight: 600;
}

.language-menu::-webkit-scrollbar {
    width: 6px;
}

.language-menu::-webkit-scrollbar-track {
    background: transparent;
}

.language-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.language-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .language-menu {
    left: 0;
    right: auto;
}

[dir="rtl"] .language-option {
    text-align: right;
}

[dir="rtl"] .language-option:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .editor-wrapper {
    direction: ltr;
    text-align: left;
}

/* Mobile language menu fix */
@media (max-width: 768px) {
    .language-menu {
        right: 10px;
        left: 10px;
        width: calc(100vw - 40px);
        max-width: none;
    }

    [dir="rtl"] .language-menu {
        right: 10px;
        left: 10px;
    }
}
