/* Path: assets/css/dosen.css */

:root {
  /* Primary colors for dosen theme - purple/violet */
  --bs-primary: #6a4c93;
  --bs-primary-rgb: 106, 76, 147;
  --bs-primary-text-emphasis: #7e5cac;
  --bs-primary-bg-subtle: #efe9f7;
  --bs-primary-border-subtle: #d4c7e4;

  /* Secondary colors */
  --bs-secondary: #6c757d;
  --bs-success: #3db58c;
  --bs-success-rgb: 61, 181, 140;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-info: #17a2b8;
}

/* Override primary button styles */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #593e7c;
  --bs-btn-hover-border-color: #4e3572;
  --bs-btn-focus-shadow-rgb: 106, 76, 147;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #4e3572;
  --bs-btn-active-border-color: #432e64;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6a4c93;
  --bs-btn-disabled-border-color: #6a4c93;
}

/* Outline primary button */
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: 106, 76, 147;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--bs-primary);
}

/* Success button */
.btn-success {
  --bs-btn-bg: var(--bs-success);
  --bs-btn-border-color: var(--bs-success);
  --bs-btn-hover-bg: #34a77f;
  --bs-btn-hover-border-color: #2f9673;
}

/* Timeline style for history */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--bs-border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-icon {
  position: absolute;
  left: -30px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bs-body-bg);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  background-color: var(--bs-body-bg);
  border-radius: 0.5rem;
  padding: 15px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 20px;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--bs-secondary);
  margin-bottom: 5px;
}

/* Avatar and profile elements */
.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 500;
}

.avatar-md {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
}

/* Progress bar custom styles */
.progress-thin {
  height: 6px;
}

.status-badge {
  padding: 0.5em 0.75em;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Custom card styles */
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease;
}

.card {
  transition: all 0.3s ease;
}

/* Page section styles */
.page-section {
  margin-bottom: 2rem;
}

.page-section-title {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bs-primary-border-subtle);
  padding-bottom: 0.5rem;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] {
  --bs-primary: #8967b0;
  --bs-primary-text-emphasis: #9e7fca;
  --bs-primary-bg-subtle: #2d1f3f;
  --bs-primary-border-subtle: #4a3464;
  --bs-success: #3db58c;
}

[data-bs-theme="dark"] .timeline:before {
  background-color: #495057;
}

[data-bs-theme="dark"] .timeline-content {
  background-color: #2b3035;
}

[data-bs-theme="dark"] .card-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

/* Chapter progress indicator */
.chapter-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.chapter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.chapter-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--bs-border-color);
  z-index: 0;
}

.chapter-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bs-white);
  border: 2px solid var(--bs-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.chapter-circle.active {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

.chapter-circle.completed {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
  color: white;
}

.chapter-label {
  font-size: 0.75rem;
  text-align: center;
}

/* Student card styles */
.student-card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.student-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Activity logs */
.activity-log {
  padding-left: 1.5rem;
  position: relative;
}

.activity-log:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--bs-border-color);
}

.activity-log-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.activity-log-item:before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  z-index: 1;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--bs-secondary);
}

/* Bimbingan counter badge */
.bimbingan-counter {
  position: relative;
  display: inline-block;
}

.bimbingan-counter .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  border-radius: 10rem;
}

/* Bimbing action buttons */
.btn-bimbing {
  border-radius: 1.5rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-approve {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
  color: white;
}

.btn-approve:hover,
.btn-approve:focus {
  background-color: #34a77f;
  border-color: #2f9673;
  color: white;
}

.btn-revision {
  background-color: var(--bs-warning);
  border-color: var(--bs-warning);
  color: black;
}

.btn-revision:hover,
.btn-revision:focus {
  background-color: #e0a800;
  border-color: #d39e00;
  color: black;
}

/* Custom tabs for dosen */
.dosen-tabs .nav-link {
  padding: 0.75rem 1.25rem;
  color: var(--bs-body-color);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.dosen-tabs .nav-link:hover {
  color: var(--bs-primary);
  background-color: var(--bs-primary-bg-subtle);
}

.dosen-tabs .nav-link.active {
  color: var(--bs-primary);
  background-color: transparent;
  border-bottom-color: var(--bs-primary);
  font-weight: 500;
}

/* Statistics cards */
.stats-card {
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stats-primary {
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
}

.stats-success {
  background-color: rgba(var(--bs-success-rgb), 0.1);
  color: var(--bs-success);
}

.stats-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--bs-warning);
}

.stats-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--bs-info);
}

/* Dark mode support for stats cards */
[data-bs-theme="dark"] .stats-primary {
  background-color: rgba(106, 76, 147, 0.2);
}

[data-bs-theme="dark"] .stats-success {
  background-color: rgba(61, 181, 140, 0.2);
}

[data-bs-theme="dark"] .stats-warning {
  background-color: rgba(255, 193, 7, 0.2);
}

[data-bs-theme="dark"] .stats-info {
  background-color: rgba(23, 162, 184, 0.2);
}

/* File upload & display */
.file-item {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  transition: all 0.2s ease;
}

.file-item:hover {
  background-color: var(--bs-primary-bg-subtle);
  border-color: var(--bs-primary-border-subtle);
}

.file-icon {
  font-size: 2rem;
}

.file-preview {
  max-height: 600px;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Custom form styling */
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary-border-subtle);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-feedback {
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Dark mode fix for dosen */
[data-bs-theme="dark"] .bg-white {
  background-color: #2b3035 !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #343a40 !important;
}

[data-bs-theme="dark"] .sidebar {
  background-color: #212529;
}

[data-bs-theme="dark"] .navbar {
  background-color: #212529 !important;
}

[data-bs-theme="dark"] .border {
  border-color: #495057 !important;
}

[data-bs-theme="dark"] .text-dark {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #adb5bd !important;
}

[data-bs-theme="dark"] .table {
  --bs-table-color: #e9ecef;
  --bs-table-bg: transparent;
  --bs-table-border-color: #495057;
}

[data-bs-theme="dark"] .table-light {
  --bs-table-bg: #343a40;
  --bs-table-color: #e9ecef;
}
