.important-note {
  font-weight: bold;
  display: inline-block;
}
.red-text {
  color: #e53e3e;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: #0f0f0f;
  min-height: 100vh;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-bottom: 40px;
  color: #f8fafc;
}

header h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1em;
  opacity: 0.85;
  font-weight: 300;
  color: #cbd5e1;
}

main {
  flex: 1;
  background: #0f0f0f;
  border-radius: 16px;
  padding: 40px;
}

.upload-section {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #e2e8f0;
}

select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #4a5568;
  border-radius: 8px;
  font-size: 16px;
  background: #010409;
  color: #e2e8f0;
  transition: border-color 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #4c51bf;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

#javaFiles {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-display {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 2px dashed #4a5568;
  border-radius: 8px;
  background: #010409;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-input-display:hover {
  border-color: #4c51bf;
  background: #2d3748;
}

.file-input-display.has-file {
  border-style: solid;
  border-color: #38a169;
  background: #1a2e1a;
}

.file-icon {
  margin-right: 10px;
  font-size: 20px;
}

.file-text {
  color: #a0aec0;
  font-weight: 400;
}

.file-input-display.has-file .file-text {
  color: #48bb78;
  font-weight: 500;
}

small {
  display: block;
  margin-top: 5px;
  color: #a0aec0;
  font-size: 14px;
}

.file-list {
  margin-top: 10px;
  padding: 12px;
  background: #1a202c;
  border-radius: 6px;
  border: 1px solid #4a5568;
}

.file-list-title {
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 8px;
  font-size: 14px;
}

.file-item {
  color: #a0aec0;
  font-size: 14px;
  margin-bottom: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
}

.file-item:last-child {
  margin-bottom: 0;
}

.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: #38276c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

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

.results-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #4a5568;
}

.results-section h2 {
  margin-bottom: 20px;
  color: #e2e8f0;
  font-weight: 600;
}

.result-card {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid;
}

.result-success {
  background: #1a2e1a;
  border-left-color: #38a169;
}

.result-error {
  background: #2d1b1b;
  border-left-color: #e53e3e;
}

.result-warning {
  background: #2d2416;
  border-left-color: #dd6b20;
}

.encoding-warning {
  margin-bottom: 15px;
  border: 2px solid #dd6b20;
  background: #3d2b18;
}

.encoding-warning .result-message {
  color: #f6ad55;
}

.result-status {
  font-size: 24px;
  margin-bottom: 10px;
}

.result-message {
  font-weight: 600;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.result-details {
  background: #1a202c;
  padding: 15px;
  border-radius: 6px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-x: auto;
  border: 1px solid #4a5568;
  max-height: 300px;
  overflow-y: auto;
  color: #cbd5e1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.result-details::-webkit-scrollbar {
  display: none;
}

.result-points {
  margin-top: 15px;
  padding: 10px 15px;
  background: #2b6cb0;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.deadline-info {
  margin: 15px 0;
  padding: 12px;
  background: #1a202c;
  border-radius: 6px;
  border-left: 3px solid #718096;
  font-size: 14px;
  color: #a0aec0;
}

.deadline-info strong {
  color: #e2e8f0;
}

.deadline-info em {
  color: #718096;
  font-style: italic;
}

.points-info {
  margin: 15px 0;
  padding: 12px;
  background: #1a2e1a;
  border-radius: 6px;
  border-left: 3px solid #38a169;
  font-size: 14px;
  color: #48bb78;
}

.points-info strong {
  color: #38a169;
  font-weight: 600;
}

.docker-info {
  margin: 10px 0;
  padding: 8px;
  background: #1a202c;
  border-radius: 4px;
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
}

.docker-info strong {
  color: #cbd5e1;
}

/* Secret tests styling */
.secret-tests {
  position: relative;
  opacity: 0.9;
}

.secret-tests::before {
  content: '🔒';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  opacity: 0.7;
}

.secret-tests .result-message {
  font-style: italic;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #cbd5e1;
  opacity: 0.8;
  font-size: 14px;
}

/* Responsive design */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  header h1 {
    font-size: 2em;
  }

  main {
    padding: 25px;
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #4a5568;
  border-top: 3px solid #4c51bf;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}
