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

body {
    background: #0d1117;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header h1 {
    color: #58a6ff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header h1::before {
    content: "📋";
    font-size: 1.2rem;
}

.header h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header h1 a:hover {
    color: #79c0ff;
}

.main {
    padding: 2rem 0;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f6fc;
    font-weight: 500;
    font-size: 14px;
}

textarea, select, input {
    width: 100%;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.75rem;
    color: #c9d1d9;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 400px;
    line-height: 1.5;
}

textarea:focus, select:focus, input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn {
    background: #238636;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #2ea043;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

.btn-secondary:hover {
    background: #30363d;
    border-color: #8b949e;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 12px;
}

.error {
    background: #da3633;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #f85149;
}

.success {
    background: #238636;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #2ea043;
}

.paste-info {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.paste-meta {
    display: flex;
    gap: 2rem;
    font-size: 14px;
    color: #8b949e;
    flex-wrap: wrap;
}

.paste-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.paste-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.paste-content {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.paste-content pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    background: transparent !important;
    max-height: 70vh;
}

.paste-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.45;
}

.stats {
    font-size: 12px;
    color: #8b949e;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-warning {
    color: #d29922;
}

.stats-error {
    color: #f85149;
}

.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #30363d;
    text-align: center;
    color: #8b949e;
    font-size: 14px;
}

.footer a {
    color: #58a6ff;
    text-decoration: none;
}

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .paste-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .paste-meta {
        justify-content: space-between;
        gap: 1rem;
    }
    
    .paste-actions {
        justify-content: center;
    }
    
    .header h1 {
        font-size: 1.25rem;
    }
    
    textarea {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .paste-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .paste-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}