body {
    background-color: #0c0e10;
    transition: background-color 0.4s cubic-bezier(.4,0,.2,1);
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8vh;
}

.heading-hero {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 1rem 0 3rem 0;
    transition: color 0.4s cubic-bezier(.4,0,.2,1);
    text-align: center;
}

@media (min-width: 640px) {
    .heading-hero {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .heading-hero {
        font-size: 4.5rem;
    }
}

.paste-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.4s cubic-bezier(.4,0,.2,1);
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input select,
.form-input option {
    background: #0c0e10;
    color: #fff;
    border: none;
}

.form-textarea {
    min-height: 300px;
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
}

.form-input:focus, .form-textarea:focus {
    border-color: #7dd3fc;
    background: rgba(125,211,252,0.08);
    box-shadow: 0 0 0 3px rgba(125,211,252,0.1);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #888;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.nice-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    font-family: inherit;
    font-weight: 600;
}

.nice-btn:hover, .nice-btn:focus {
    border-color: #7dd3fc;
    color: #7dd3fc;
    box-shadow: 0 2px 12px 0 rgba(125, 211, 252, 0.15);
}

.nice-btn.primary {
    background: #7dd3fc;
    color: #0c0e10;
    border-color: #7dd3fc;
}

.nice-btn.primary:hover, .nice-btn.primary:focus {
    background: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 2px 12px 0 rgba(125, 211, 252, 0.25);
}

.light-mode-toggle-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1100;
}

.light-mode-btn {
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 7px 8px 5px 8px;
    cursor: pointer;
    color: #fbbf24;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
}

.light-mode-btn:hover, .light-mode-btn:focus {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Paste display styles */
.paste-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.paste-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #7dd3fc;
    font-size: 0.9rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.paste-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Paste content and markdown styles */
.paste-content {
    width: 100%;
    max-width: 1000px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid #444;
    border-radius: 14px;
    padding: 2rem;
    overflow-x: auto;
}

.paste-view {
    width: 100%;
}

.markdown-toggle {
    margin-bottom: 1rem;
    text-align: center;
}

.markdown-content {
    color: #fff;
    line-height: 1.6;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3,
.markdown-content h4, .markdown-content h5, .markdown-content h6 {
    color: #7dd3fc;
    margin: 1.5rem 0 1rem 0;
}

.markdown-content p {
    margin: 1rem 0;
}

.markdown-content code {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.markdown-content pre {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content blockquote {
    border-left: 4px solid #7dd3fc;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #ccc;
}

.markdown-content ul, .markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content a {
    color: #7dd3fc;
    text-decoration: none;
}

.markdown-content a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.markdown-content th, .markdown-content td {
    border: 1px solid #444;
    padding: 0.5rem;
    text-align: left;
}

.markdown-content th {
    background: rgba(255,255,255,0.1);
    font-weight: 600;
}

body.light-mode .markdown-content {
    color: #222;
}

body.light-mode .markdown-content h1, 
body.light-mode .markdown-content h2, 
body.light-mode .markdown-content h3,
body.light-mode .markdown-content h4, 
body.light-mode .markdown-content h5, 
body.light-mode .markdown-content h6 {
    color: #fbbf24;
}

body.light-mode .markdown-content code {
    background: rgba(0,0,0,0.1);
}

body.light-mode .markdown-content pre {
    background: rgba(0,0,0,0.05);
}

body.light-mode .markdown-content blockquote {
    border-left-color: #fbbf24;
    color: #666;
}

body.light-mode .markdown-content th, 
body.light-mode .markdown-content td {
    border-color: #e5e7eb;
}

body.light-mode .markdown-content th {
    background: rgba(0,0,0,0.05);
}

.paste-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.paste-content code {
    color: #fff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #7dd3fc;
    color: #0c0e10;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Light mode styles */
body.light-mode {
    background-color: #f7fafc;
    transition: background-color 0.4s cubic-bezier(.4,0,.2,1);
}

body.light-mode .heading-hero {
    color: #222;
    transition: color 0.4s cubic-bezier(.4,0,.2,1);
}

body.light-mode .form-group label {
    color: #222;
}

body.light-mode .form-input, 
body.light-mode .form-textarea {
    background: #fff;
    border-color: #e5e7eb;
    color: #222;
}

body.light-mode .form-input select,
body.light-mode .form-input option {
    background: #fff;
    color: #222;
}

body.light-mode .form-input:focus, 
body.light-mode .form-textarea:focus {
    border-color: #fbbf24;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(251,191,36,0.1);
}

body.light-mode .form-input::placeholder, 
body.light-mode .form-textarea::placeholder {
    color: #888;
}

body.light-mode .nice-btn {
    border-color: #222;
    color: #222;
    background: transparent;
}

body.light-mode .nice-btn:hover, 
body.light-mode .nice-btn:focus {
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 2px 12px 0 rgba(251, 191, 36, 0.15);
}

body.light-mode .nice-btn.primary {
    background: #fbbf24;
    color: #fff;
    border-color: #fbbf24;
}

body.light-mode .nice-btn.primary:hover, 
body.light-mode .nice-btn.primary:focus {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 2px 12px 0 rgba(251, 191, 36, 0.25);
}

body.light-mode .paste-content {
    background: #fff;
    border-color: #e5e7eb;
}

body.light-mode .paste-content code {
    color: #222;
}

body.light-mode .paste-meta {
    color: #fbbf24;
}

body.light-mode .notification {
    background: #fbbf24;
    color: #fff;
}

/* Footer styles */
.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    color: #7dd3fc;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-text {
    color: #888;
    font-weight: 400;
}

.project-link {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.project-link:hover, .project-link:focus {
    color: #fbbf24;
    text-decoration: underline;
}

body.light-mode .footer {
    color: #fbbf24;
}

body.light-mode .footer-text {
    color: #666;
}

body.light-mode .project-link {
    color: #fbbf24;
}

body.light-mode .project-link:hover, 
body.light-mode .project-link:focus {
    color: #7dd3fc;
}

/* Syntax highlighting overrides */
.paste-content pre[class*="language-"] {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.paste-content code[class*="language-"] {
    background: transparent !important;
    color: inherit !important;
    text-shadow: none !important;
}

/* Dark theme syntax highlighting */
body:not(.light-mode) .paste-content .token.comment,
body:not(.light-mode) .paste-content .token.prolog,
body:not(.light-mode) .paste-content .token.doctype,
body:not(.light-mode) .paste-content .token.cdata {
    color: #6a9955 !important;
}

body:not(.light-mode) .paste-content .token.punctuation {
    color: #d4d4d4 !important;
}

body:not(.light-mode) .paste-content .token.property,
body:not(.light-mode) .paste-content .token.tag,
body:not(.light-mode) .paste-content .token.boolean,
body:not(.light-mode) .paste-content .token.number,
body:not(.light-mode) .paste-content .token.constant,
body:not(.light-mode) .paste-content .token.symbol,
body:not(.light-mode) .paste-content .token.deleted {
    color: #b5cea8 !important;
}

body:not(.light-mode) .paste-content .token.selector,
body:not(.light-mode) .paste-content .token.attr-name,
body:not(.light-mode) .paste-content .token.string,
body:not(.light-mode) .paste-content .token.char,
body:not(.light-mode) .paste-content .token.builtin,
body:not(.light-mode) .paste-content .token.inserted {
    color: #ce9178 !important;
}

body:not(.light-mode) .paste-content .token.operator,
body:not(.light-mode) .paste-content .token.entity,
body:not(.light-mode) .paste-content .token.url,
body:not(.light-mode) .paste-content .language-css .token.string,
body:not(.light-mode) .paste-content .style .token.string {
    color: #d4d4d4 !important;
}

body:not(.light-mode) .paste-content .token.atrule,
body:not(.light-mode) .paste-content .token.attr-value,
body:not(.light-mode) .paste-content .token.keyword {
    color: #569cd6 !important;
}

body:not(.light-mode) .paste-content .token.function,
body:not(.light-mode) .paste-content .token.class-name {
    color: #dcdcaa !important;
}

/* Light theme syntax highlighting */
body.light-mode .paste-content .token.comment,
body.light-mode .paste-content .token.prolog,
body.light-mode .paste-content .token.doctype,
body.light-mode .paste-content .token.cdata {
    color: #008000 !important;
}

body.light-mode .paste-content .token.punctuation {
    color: #333 !important;
}

body.light-mode .paste-content .token.property,
body.light-mode .paste-content .token.tag,
body.light-mode .paste-content .token.boolean,
body.light-mode .paste-content .token.number,
body.light-mode .paste-content .token.constant,
body.light-mode .paste-content .token.symbol,
body.light-mode .paste-content .token.deleted {
    color: #0000ff !important;
}

body.light-mode .paste-content .token.selector,
body.light-mode .paste-content .token.attr-name,
body.light-mode .paste-content .token.string,
body.light-mode .paste-content .token.char,
body.light-mode .paste-content .token.builtin,
body.light-mode .paste-content .token.inserted {
    color: #a31515 !important;
}

body.light-mode .paste-content .token.operator,
body.light-mode .paste-content .token.entity,
body.light-mode .paste-content .token.url,
body.light-mode .paste-content .language-css .token.string,
body.light-mode .paste-content .style .token.string {
    color: #333 !important;
}

body.light-mode .paste-content .token.atrule,
body.light-mode .paste-content .token.attr-value,
body.light-mode .paste-content .token.keyword {
    color: #0000ff !important;
}

body.light-mode .paste-content .token.function,
body.light-mode .paste-content .token.class-name {
    color: #795e26 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-top: 6vh;
    }
    
    .heading-hero {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .paste-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .paste-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .paste-content {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .nice-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .heading-hero {
        font-size: 2rem;
    }
    
    .form-input, .form-textarea {
        padding: 0.8rem;
    }
    
    .light-mode-toggle-container {
        top: 10px;
        right: 10px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: none;
    }
}