:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --accent-primary: #ff3333;
    --accent-hover: #ff6666;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.upload-area {
    width: 100%;
    min-height: 200px;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    margin: 20px 0;
    padding: 30px;
    background-color: var(--bg-secondary);
    box-sizing: border-box;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    font-family: monospace;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(255, 51, 51, 0.2);
}

button {
    padding: 12px 24px;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: fit-content;
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    button:hover {
        background-color: var(--accent-hover);
    }
}

.url-container {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.url-container p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
}

.url-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.url-container a {
    color: var(--accent-primary);
text-decoration: none;
word-break: break-all;
text-align: center;
}

.url-container a:hover {
    text-decoration: underline;
}

.copy-button {
    padding: 6px 12px;
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    .copy-button:hover {
        background-color: var(--accent-hover);
    }
}

.copy-button.copied {
    background-color: #4CAF50;
}

.note {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Auth overlay styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-box {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 3px solid var(--border-color);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.auth-box input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-2px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(4px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-8px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(8px, 0, 0);
    }
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    .upload-area {
        padding: 20px;
    }

    button {
        width: 100%;
    }

    .url-display {
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }
}

button:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.copy-button:active {
    transform: scale(0.98);
    opacity: 0.9;
}
