body {
    padding: 0;
    margin: 0;
    background-color: #0f0f1e;
    color: #a8b2d1;
    font-family: monospace;
    font-size: 16px;
}

/* Main container */
.container {
}

/* Form styling */
form {
    margin: auto;
    width: 100%;
    max-width: 960px;
    background-color: #1a1a2e;
    padding: 32px;
    border: 4px solid #16213e;
    box-shadow: 0 0 0 2px #0f0f1e, 0 8px 16px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }

    .container {
        padding: 0;
        margin: 0;
        min-height: 100vh;
    }

    /* form { */
        /* max-width: 100%; */
        /* width: 100%; */
        /* padding: 24px; */
        /* border: none; */
        /* box-shadow: none; */
        /* border-radius: 0; */
        /* margin: 0; */
    /* } */

    h1 {
        font-size: 24px;
        margin-top: 0;
    }

    button,
    input[type="submit"] {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    form {
        padding: 16px;
    }

    h1 { font-size: 20px; }

    input[type="text"],
    input[type="email"],
    input[type="file"],
    textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .progress-window {
        min-width: 280px;
        padding: 20px;
    }
}

h1 {
    color: #e94560;
    text-align: center;
    font-size: 32px;
    text-shadow: 3px 3px 0 #0f0f1e;
    margin-bottom: 24px;
}

/* Input styling - chunky 8-bit style */
input[type="text"],
input[type="email"],
input[type="file"],
textarea {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    background-color: #0f0f1e;
    border: 3px solid #16213e;
    color: #a8b2d1;
    font-family: monospace;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
textarea:focus {
    outline: none;
    border-color: #533483;
    box-shadow: 0 0 0 2px #533483;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    color: #e94560;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 4px;
    font-size: 14px;
    text-shadow: 1px 1px 0 #0f0f1e;
}

/* File input label - no spacing */
.file-input-label {
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Error messages */
.errors {
    color: #e94560;
    font-weight: bold;
    font-size: 14px;
    margin: 4px 0 0 0;
}

/* Button styling - 8-bit style for all buttons */
button,
input[type="submit"] {
    background-color: #533483;
    color: #a8b2d1;
    border: 3px solid #3d2461;
    padding: 12px 24px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 0 #0f0f1e;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    margin-top: 16px;
    transition: all 0.1s;
}

button:hover,
input[type="submit"]:hover {
    background-color: #6b4499;
    border-color: #533483;
}

button:active,
input[type="submit"]:active {
    box-shadow: 1px 1px 0 #0f0f1e;
    transform: translate(2px, 2px);
}

button:disabled,
input[type="submit"]:disabled {
    background-color: #2a2a3e;
    border-color: #1a1a2e;
    color: #4a4a5e;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Notice messages */
.notice,
.error {
    margin-top: 16px;
    padding: 12px;
    border: 3px solid;
    background-color: #0f0f1e;
    font-size: 14px;
}

.error {
    border-color: #e94560;
    color: #e94560;
}

.notice {
    border-color: #533483;
    color: #a8b2d1;
}

/* 8-bit Progress Window */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.progress-window {
    background-color: #1a1a2e;
    border: 4px solid #0f0f1e;
    box-shadow: 0 0 0 2px #16213e, 0 8px 16px rgba(0, 0, 0, 0.5);
    padding: 24px;
    min-width: 320px;
    font-family: monospace;
    image-rendering: pixelated;
}

.progress-title {
    color: #e94560;
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 0 #0f0f1e;
}

.progress-bar-container {
    background-color: #0f0f1e;
    border: 3px solid #16213e;
    padding: 4px;
    margin-bottom: 16px;
}

.progress-bar {
    background-color: #533483;
    height: 24px;
    transition: width 0.1s linear;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 4px,
        rgba(255, 255, 255, 0.1) 4px,
        rgba(255, 255, 255, 0.1) 8px
    );
}

.progress-percentage {
    color: #a8b2d1;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.progress-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-cancel {
    background-color: #e94560;
    color: #1a1a2e;
    border: 3px solid #c23950;
    padding: 8px 16px;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0 #0f0f1e;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.btn-cancel:hover {
    background-color: #ff5370;
    border-color: #e94560;
}

.btn-cancel:active {
    box-shadow: 1px 1px 0 #0f0f1e;
    transform: translate(1px, 1px);
}
