/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.input-section, .feedback-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-section h2, .feedback-section h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

#feedback-output {
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.feedback-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 5px solid;
}

.feedback-item.positive {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.feedback-item.negative {
    background: #ffebee;
    border-left-color: #f44336;
}

.feedback-item.suggestion {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.feedback-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feedback-item pre {
    margin-top: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}

footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 1rem;
}

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

.file-upload label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.file-upload input[type="file"] {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.job-type {
    margin: 1rem 0;
}

.job-type label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.job-type select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

.dark-mode .job-type select {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}

.purpose {
    margin: 1rem 0;
}

.purpose label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.purpose select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

.dark-mode .purpose select {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}

.template-section {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.template-section label {
    font-weight: 500;
}

.template-section select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    flex: 1;
}

.template-section button {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.template-section button:hover {
    transform: translateY(-2px);
}

.additional-features {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.additional-features button {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.additional-features button:hover {
    transform: translateY(-2px);
}

.dark-mode .template-section select {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .template-section button {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
}

.dark-mode .additional-features button {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
}

.score-display {
    margin-top: 1rem;
    text-align: center;
}

.score-circle {
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.score-high {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.score-medium {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.score-low {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.score-number {
    font-size: 2rem;
    line-height: 1;
}

.score-text {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.feedback-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.feedback-controls button {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

/* Dark Mode */
.dark-mode {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
}

.dark-mode header {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.dark-mode .input-section, .dark-mode .feedback-section {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.dark-mode textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .feedback-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode footer {
    background: rgba(0, 0, 0, 0.8);
    color: #e0e0e0;
}

.dark-mode button {
    background: linear-gradient(135deg, #3f51b5 0%, #5e35b1 100%);
}

.dark-mode button:hover {
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.4);
}

.dark-mode .feedback-controls button {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
}

.dark-mode .feedback-controls button:hover {
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.4);
}

.dark-mode textarea:focus {
    border-color: #42a5f5;
}

.dark-mode .file-upload input[type="file"] {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode #feedback-output {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
    }

    .input-section, .feedback-section {
        padding: 1.5rem;
    }

    textarea {
        height: 250px;
    }

    .feedback-controls {
        flex-direction: column;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 1.5rem;
    }
}
