:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3a1;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e9ecef;
    --dark-gray: #6c757d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
    text-shadow: 3px 3px 0px var(--accent-color);
    letter-spacing: 2px;
    transform: rotate(-2deg);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border-radius: 15px;
    border: 3px dashed var(--secondary-color);
}

header p {
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

textarea#code-input {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 1rem;
}

.file-upload {
    margin-bottom: 1rem;
}

.file-label {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #dde2e6;
}

input[type="file"] {
    display: none;
}

button#analyze-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button#analyze-btn:hover {
    background-color: #3da58a;
}

.result-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.score-rectangle {
    width: 350px;
    height: 150px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    background-color: var(--accent-color);
    color: white;
    padding: 1.5rem;
    word-break: keep-all;
    white-space: nowrap;
}

#score-label {
    margin-right: 0.5rem;
}

.roast-container {
    width: 100%;
    text-align: left;
}

.roast-container p {
    color: var(--dark-gray);
    max-width: 100%;
    margin: 0;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
} 