/* Dashboard Styles */

:root {
  --sidebar-width: 280px;
  --topnav-height: 70px;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-light);
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background-color: var(--text-dark);
  color: white;
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.sidebar-logo i {
  color: var(--primary-color);
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.sidebar-nav {
  padding: 1.5rem 0;
}

.nav-section {
  padding: 0 1rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section:last-child {
  border-bottom: none;
}

.nav-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.nav-link.logout {
  color: #ff6b6b;
}

.nav-link.logout:hover {
  background-color: rgba(255, 107, 107, 0.1);
}

/* Main Content */
.dashboard-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top Navigation */
.dashboard-topnav {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  height: var(--topnav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  display: none;
}

.page-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 700;
}

.topnav-right {
  display: flex;
  align-items: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.profile-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Dashboard Content */
.dashboard-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.welcome-content {
  flex: 1;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  opacity: 0.95;
  margin: 0;
}

.welcome-action {
  margin-left: 2rem;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f7ff;
  border-radius: 8px;
}

.stat-info {
  flex: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* Activity Card */
.activity-card,
.quick-links-card,
.form-card,
.profile-card,
.settings-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  background-color: #f0f7ff;
}

.activity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.activity-time {
  color: var(--text-muted);
}

/* Quick Links */
.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links-list li {
  margin-bottom: 0.75rem;
}

.quick-links-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.quick-links-list a:hover {
  background-color: #f0f7ff;
  color: var(--primary-color);
}

.quick-links-list i {
  color: var(--primary-color);
  width: 20px;
}

/* Form Styles */
.dashboard-form {
  width: 100%;
}

.form-label {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 75, 154, 0.1);
}

/* Profile Card */
.profile-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-detail-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-detail-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* Saved Job Card */
.saved-job-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.saved-job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.job-card-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
}

.btn-unsave {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-unsave:hover {
  color: #ff5252;
  transform: scale(1.1);
}

.job-card-company,
.job-card-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.job-card-salary {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.job-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background-color: #e3f2fd;
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.job-card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Table */
.dashboard-table {
  margin-bottom: 0;
}

.dashboard-table thead {
  background-color: var(--bg-light);
}

.dashboard-table th {
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.dashboard-table td {
  padding: 1rem;
  border-color: var(--border-color);
  vertical-align: middle;
}

.dashboard-table tbody tr:hover {
  background-color: #f0f7ff;
}

/* Alert Card */
.alert-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.alert-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.alert-details {
  margin-bottom: 1rem;
}

.alert-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.alert-actions {
  display: flex;
  gap: 0.5rem;
}

/* Settings */
.preference-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.preference-item:last-child {
  border-bottom: none;
}

.form-check {
  margin: 0;
}

.form-check-label {
  cursor: pointer;
  margin-left: 0.5rem;
}

.danger-zone {
  border: 2px solid #ff6b6b;
  background-color: rgba(255, 107, 107, 0.05);
}

.settings-info-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.info-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  :root {
    --sidebar-width: 250px;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    left: -100%;
    transition: left 0.3s ease;
    max-height: 100vh;
  }

  .dashboard-sidebar.active {
    left: 0;
  }

  .sidebar-toggle {
    display: block;
  }

  .sidebar-toggle-btn {
    display: block;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-topnav {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .dashboard-content {
    padding: 1rem;
  }

  .welcome-card {
    flex-direction: column;
    text-align: center;
  }

  .welcome-action {
    margin-left: 0;
    margin-top: 1rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .job-card-actions {
    flex-direction: column;
  }

  .job-card-actions .btn {
    width: 100%;
  }

  .table-responsive {
    font-size: 0.85rem;
  }
}
