/* Global styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --gray-color: #95a5a6;
}

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: var(--dark-color);
  line-height: 1.6;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border: none;
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: 600;
}

/* Login page */
.login-container {
  max-width: 500px;
  margin: 50px auto;
}

.login-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Dashboard */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-container {
  max-width: 400px;
  width: 100%;
}

.job-table {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.job-table th {
  background-color: var(--light-color);
  border-top: none;
}

/* Sortable columns */
.sortable {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.sortable:hover {
  background-color: #e3e9ec;
}

.sortable i.fa-sort {
  font-size: 0.8rem;
  margin-left: 5px;
  color: #aaa;
}

.sortable.asc i.fa-sort:before {
  content: "\f0de"; /* fa-sort-up */
  color: var(--secondary-color);
}

.sortable.desc i.fa-sort:before {
  content: "\f0dd"; /* fa-sort-down */
  color: var(--secondary-color);
}

.job-table-container {
  overflow-x: auto;
}

/* Job forms */
.form-container {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group label {
  font-weight: 500;
}

.ai-form-container {
  margin-bottom: 30px;
}

/* Job detail */
.job-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.job-detail-company {
  color: var(--gray-color);
  margin-bottom: 10px;
}

.job-detail-date {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.job-description {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Loading spinner */
.loading-spinner {
  display: none;
  text-align: center;
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container {
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .dashboard-actions {
    display: flex;
    flex-direction: column;
  }
  
  .dashboard-actions .btn {
    margin-bottom: 10px;
  }
}

/* TinyMCE customization */
.tox-tinymce {
  border-radius: 4px !important;
}

/* Hero section for login page */
.hero-container {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 500px;
}
