/* ============================== */
/* Resume Screener - Main Styles  */
/* ============================== */

:root {
  --primary-color: #007bff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

/* ============================== */
/* Layout & Container             */
/* ============================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
}

header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

header p {
  font-size: 16px;
  opacity: 0.9;
}

main {
  min-height: calc(100vh - 400px);
  margin-bottom: 40px;
}

footer {
  text-align: center;
  padding: 20px;
  color: #666;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

/* ============================== */
/* Sections                       */
/* ============================== */

.section {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

/* ============================== */
/* Forms                          */
/* ============================== */

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

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

textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ============================== */
/* File Upload                    */
/* ============================== */

.upload-section {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px dashed #ddd;
}

.upload-section label {
  font-size: 14px;
  margin-bottom: 10px;
}

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

.file-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.file-input-label {
  display: block;
  padding: 12px 16px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s;
}

.file-input-label:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.file-input-label:active {
  transform: scale(0.98);
}

.file-info {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.file-info.success {
  color: var(--success-color);
  font-weight: 500;
}

.file-info.loading {
  color: var(--warning-color);
  font-weight: 500;
}

.file-info.error {
  color: var(--danger-color);
  font-weight: 500;
}

/* ============================== */
/* Buttons                        */
/* ============================== */

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
  margin-top: 10px;
}

.btn-primary:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  margin-top: 20px;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn:active {
  transform: translateY(0);
}

/* ============================== */
/* Typography                     */
/* ============================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
  margin-bottom: 15px;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* ============================== */
/* Utility Classes                */
/* ============================== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-10 {
  margin-bottom: 10px;
}
.mb-20 {
  margin-bottom: 20px;
}
.p-10 {
  padding: 10px;
}
.p-20 {
  padding: 20px;
}

/* ============================== */
/* Responsive Design              */
/* ============================== */

@media (max-width: 768px) {
  header {
    padding: 30px 15px;
  }

  header h1 {
    font-size: 28px;
  }

  .section {
    padding: 20px;
  }

  textarea {
    min-height: 120px;
  }

  .panel-row {
    grid-template-columns: 1fr !important;
  }

  .score-header {
    flex-direction: column;
    text-align: center;
  }

  .score-badge {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  header h1 {
    font-size: 24px;
  }

  .section {
    padding: 15px;
  }

  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* ============================== */
/* Animations                     */
/* ============================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeIn 0.3s ease-out;
}

/* ============================== */
/* Scrollbar Styling              */
/* ============================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
