* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

nav {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#paste-title {
    width: 100%;
    padding: 0.75rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#paste-language {
    padding: 0.5rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

#paste-content {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

button {
    padding: 0.5rem 1rem;
    background: #238636;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

button:hover {
    background: #2ea043;
}

#raw-btn, #history-btn, #edit-btn, #new-paste-btn, #back-to-paste-btn {
    background: #21262d;
    border: 1px solid #30363d;
}

#raw-btn:hover, #history-btn:hover, #edit-btn:hover, #new-paste-btn:hover, #back-to-paste-btn:hover {
    background: #30363d;
}

.paste-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #30363d;
}

.paste-actions {
    display: flex;
    gap: 0.5rem;
}

pre {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: #161b22;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
}

.close {
    color: #8b949e;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #c9d1d9;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
}

.modal-content button {
    width: 100%;
    margin-top: 1rem;
}

#history-list {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid #30363d;
    cursor: pointer;
}

.history-item:hover {
    background: #161b22;
}

.history-item:last-child {
    border-bottom: none;
}

#paste-list {
    display: grid;
    gap: 1rem;
}

.paste-item {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
}

.paste-item:hover {
    border-color: #58a6ff;
}

.paste-item h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}

.paste-item .meta {
    color: #8b949e;
    font-size: 0.85rem;
}

#auth-section button, #user-section button {
    background: #21262d;
    border: 1px solid #30363d;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

#auth-section button:hover, #user-section button:hover {
    background: #30363d;
}

#username-display {
    margin-right: 1rem;
    color: #58a6ff;
}
