/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');

/* === CSS Variables for Theming === */
:root {
  --primary-color: #26A69A; /* A modern teal */
  --primary-hover: #00897B;
  --secondary-color: #9E9E9E; /* A lighter gray for secondary text */
  --success-color: #4CAF50; /* A friendly green */
  --light-bg: #F5F7FA; /* A very light, cool gray background */
  --dark-text: #37474F; /* A dark, neutral gray for text */
  --light-text: #f8f9fa;
  --border-color: #DDE2E7;
  --card-shadow: 0 4px 20px rgba(55, 71, 79, 0.08);
  --card-shadow-hover: 0 6px 25px rgba(55, 71, 79, 0.12);
  --border-radius: 0.375rem; /* Bootstrap's default */
  --transition-speed: 0.3s;
}

/* === Global Styles === */
body {
  font-family: 'Titillium Web', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* === Navbar Customization === */
.navbar.bg-primary {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.navbar .nav-link {
  transition: color var(--transition-speed) ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
  color: #fff !important;
  font-weight: 500;
}

.navbar .btn-outline-light {
    border-width: 2px;
    transition: all var(--transition-speed) ease;
}

.navbar .btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: scale(1.05);
}

/* === Card Enhancements === */
.card {
  border: none;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease-in-out;
  border-radius: calc(var(--border-radius) * 2);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.card-header, .card-title, h4 {
    font-weight: 600;
}

/* === Button & Form Enhancements === */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.form-control, .form-select {
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(38, 166, 154, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Placeholder styling */
.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--secondary-color);
  opacity: 0.7; /* Make it more transparent */
}
.form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: var(--secondary-color);
  opacity: 0.7;
}
.form-control::-ms-input-placeholder { /* Microsoft Edge */
  color: var(--secondary-color);
  opacity: 0.7;
}

small.form-text {
  font-size: 0.8em; /* Make it smaller than default */
}

/* === Table Styling === */
.table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table thead th {
  border: none;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.table tbody tr {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.table-hover tbody tr:hover {
  transform: scale(1.015);
  box-shadow: var(--card-shadow);
  z-index: 2;
  position: relative;
}

.table tbody td {
  border: none;
  vertical-align: middle;
}

.table tbody tr td:first-child {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}
.table tbody tr td:last-child {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* === Specific Page Styles === */

/* List Group (Cari Dosen) */
.list-group-item {
    margin-bottom: 8px;
    border: none;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease;
}
.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: var(--card-shadow);
}

/* FullCalendar Customization */
.fc-day-today {
    background-color: rgba(38, 166, 154, 0.1) !important;
}

.fc-toolbar-title {
    font-size: 1.5em !important;
    font-weight: 600;
}

/* === Landing Page Buttons === */
.landing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.action-group h6 {
  font-weight: 600;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 1rem;
}

.btn-landing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: calc(var(--border-radius) * 1.5);
}

.btn-landing i {
  font-size: 1.3rem;
  line-height: 1;
}


/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .fc-toolbar {
    flex-direction: column;
  }

  .fc-toolbar .fc-left,
  .fc-toolbar .fc-center,
  .fc-toolbar .fc-right {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .landing-actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .action-group:last-child {
    margin-top: 1rem;
  }
}