/* ========================================
   GOOGLE FONT
======================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* ========================================
   GLOBAL
======================================== */

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

body {
  font-family: "Poppins", sans-serif;
  background: #f4f7f9;
  color: #1f2937;
}

/* ========================================
   NAVBAR LOGO
======================================== */

.navbar-logo {
  width: 52px;
  height: 52px;

  object-fit: cover;

  border-radius: 14px;

  border: 1px solid #e5e7eb;

  background: white;
}

.navbar-title {
  font-size: 1rem;
  font-weight: 700;

  color: #111827;

  line-height: 1.2;
}

.navbar-subtitle {
  color: #6b7280;
  font-size: 0.8rem;
}

/* ========================================
   MOBILE NAVBAR FIX
======================================== */

@media (max-width: 768px) {

    .dashboard-navbar .container {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .navbar-brand {
        width: 100%;
        margin-bottom: 20px;
    }

    .dashboard-navbar .ms-auto {
        width: 100%;

        margin-left: 0 !important;

        display: grid !important;

        grid-template-columns: 1fr 1fr;

        gap: 14px;

        align-items: stretch !important;
    }

    .nav-user {
        grid-column: 1 / -1;

        background: #f9fafb;

        border: 1px solid #e5e7eb;

        border-radius: 18px;

        padding: 14px 16px;

        display: flex;
        align-items: center;

        font-size: 1rem;
    }

    .btn-user-management,
    .btn-logout {

        width: 100%;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 14px;

        border-radius: 18px;
    }

}

/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media (max-width: 576px) {
  .navbar-logo {
    width: 42px;
    height: 42px;
  }

  .navbar-title {
    font-size: 0.9rem;
  }

  .navbar-subtitle {
    font-size: 0.72rem;
  }
}

/* ========================================
   LOGIN SECTION
======================================== */

.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 30px 0;
}

/* ========================================
   LEFT CONTENT
======================================== */

.login-left-content {
  padding-right: 50px;
}

.system-badge {
  display: inline-flex;
  align-items: center;

  background: #ecfdf5;
  color: #059669;

  padding: 10px 18px;
  border-radius: 50px;

  font-size: 0.95rem;
  font-weight: 600;

  margin-bottom: 30px;
}

.system-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4;

  color: #111827;
}

.system-description {
  margin-top: 25px;

  color: #6b7280;
  line-height: 1.9;

  font-size: 1.05rem;
}

.system-info {
  margin-top: 50px;
}

.info-line {
  width: 80px;
  height: 4px;

  background: #10b981;
  border-radius: 50px;

  margin-bottom: 20px;
}

.system-info p {
  color: #4b5563;
  font-weight: 500;
}

/* ========================================
   LOGIN CARD
======================================== */

.login-card {
  background: white;

  border-radius: 32px;

  padding: 50px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Logo */

.login-logo {
  width: 90px;
  height: 90px;

  margin: auto;

  border-radius: 28px;

  background: #ecfdf5;

  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo i {
  font-size: 2.5rem;
  color: #059669;
}

/* Title */

.login-title {
  font-size: 2rem;
  font-weight: 700;

  color: #111827;
}

.login-subtitle {
  margin-top: 10px;
  color: #6b7280;
}

/* ========================================
   FORM
======================================== */

.form-label {
  font-weight: 600;
  margin-bottom: 10px;
}

.custom-group {
  border-radius: 18px;
  overflow: hidden;
}

.custom-group .input-group-text {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #059669;
  padding: 14px 18px;
}

.custom-group .form-control {
  border: 1px solid #d1d5db;
  padding: 14px;
}

.custom-group .form-control:focus {
  box-shadow: none;
  border-color: #10b981;
}

/* ========================================
   BUTTON
======================================== */

.btn-login {
  background: #059669;
  color: white;

  border: none;

  padding: 15px;

  border-radius: 18px;

  font-weight: 600;

  transition: 0.3s;
}

.btn-login:hover {
  background: #047857;
  color: white;

  transform: translateY(-2px);
}

/* ========================================
   FOOTER
======================================== */

.login-footer {
  margin-top: 35px;

  text-align: center;

  color: #6b7280;

  font-size: 0.95rem;
}

.login-footer i {
  color: #10b981;
  margin-right: 6px;
}

/* ========================================
   ALERT
======================================== */

.alert {
  border: none;
}

/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 991px) {
  .login-card {
    padding: 40px;
  }
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media (max-width: 576px) {
  .login-section {
    padding: 20px 0;
  }

  .login-card {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .login-title {
    font-size: 1.7rem;
  }

  .login-logo {
    width: 75px;
    height: 75px;
    border-radius: 22px;
  }

  .login-logo i {
    font-size: 2rem;
  }

  .btn-login {
    padding: 14px;
  }
}

/* ========================================
   DASHBOARD
======================================== */

.dashboard-navbar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #111827;
}

.navbar-brand:hover {
  color: #059669;
}

.nav-user {
  color: #374151;
  font-weight: 500;
}

.badge-role {
  background: #ecfdf5;
  color: #059669;

  padding: 8px 18px;
  border-radius: 50px;

  font-size: 0.9rem;
  font-weight: 600;
}

.btn-logout {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 10px 18px;

  color: #374151;
  background: white;
}

.btn-logout:hover {
  background: #f9fafb;
}

/* ========================================
   DASHBOARD SECTION
======================================== */

.dashboard-section {
  padding: 50px 0 80px;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;

  color: #111827;
}

.dashboard-subtitle {
  margin-top: 12px;
  color: #6b7280;
  font-size: 1.05rem;
}

/* ========================================
   GUIDE CARD
======================================== */

.guide-card {
  background: white;

  border-radius: 28px;

  padding: 30px;

  border: 1px solid #e5e7eb;

  height: 100%;
}

.guide-header {
  font-size: 1.1rem;
  font-weight: 700;

  color: #111827;

  margin-bottom: 18px;
}

.guide-header i {
  color: #059669;
}

.guide-list {
  padding-left: 18px;
  margin: 0;
}

.guide-list li {
  margin-bottom: 12px;

  color: #4b5563;

  line-height: 1.8;
}

/* ========================================
   PLACEMENT CARD
======================================== */

.placement-card {
  background: white;

  border-radius: 32px;

  padding: 40px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.placement-header {
  margin-bottom: 35px;
}

.placement-header h3 {
  font-size: 2rem;
  font-weight: 700;

  color: #111827;
}

/* ========================================
   FORM
======================================== */

.form-control,
.form-select {
  border-radius: 18px;
  padding: 14px;

  border: 1px solid #d1d5db;
}

.form-control:focus,
.form-select:focus {
  border-color: #10b981;

  box-shadow: 0 0 0 0.15rem rgba(16, 185, 129, 0.15);
}

.form-label {
  font-weight: 600;
  margin-bottom: 10px;
}

/* ========================================
   BUTTON
======================================== */

.btn-predict {
  background: #059669;
  color: white;

  border: none;

  padding: 14px 24px;

  border-radius: 18px;

  font-weight: 600;
}

.btn-predict:hover {
  background: #047857;
  color: white;
}

.btn-history {
  border: 1px solid #d1d5db;

  padding: 14px 24px;

  border-radius: 18px;

  font-weight: 600;

  background: white;
}

.btn-history:hover {
  background: #f9fafb;
}

/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 991px) {
  .dashboard-title {
    font-size: 2.3rem;
  }

  .placement-card {
    padding: 30px;
  }
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media (max-width: 576px) {
  .dashboard-section {
    padding: 30px 0 60px;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .dashboard-subtitle {
    font-size: 0.95rem;
  }

  .dashboard-card {
    padding: 24px;
  }

  .placement-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .placement-header h3 {
    font-size: 1.5rem;
  }

  .btn-predict,
  .btn-history {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   RESULT PAGE
======================================== */

.result-section {
  padding: 60px 0;
}

.result-card {
  background: white;

  border-radius: 32px;

  padding: 50px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

/* Header */

.result-header {
  margin-bottom: 40px;
}

.result-icon {
  width: 100px;
  height: 100px;

  margin: auto auto 25px;

  border-radius: 28px;

  background: #ecfdf5;

  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon i {
  font-size: 2.8rem;
  color: #059669;
}

.result-title {
  font-size: 2.5rem;
  font-weight: 700;

  color: #111827;
}

.result-subtitle {
  color: #6b7280;
  margin-top: 10px;
}

/* Level Result */

.level-result-box {
  background: #ecfdf5;

  border: 1px solid #d1fae5;

  border-radius: 28px;

  padding: 35px;

  text-align: center;

  margin-bottom: 40px;
}

.level-label {
  color: #047857;
  font-weight: 600;

  margin-bottom: 10px;
}

.level-result {
  font-size: 3rem;
  font-weight: 700;

  color: #059669;
}

/* Student Info */

.info-item-card {
  background: #f9fafb;

  border-radius: 24px;

  padding: 24px;

  border: 1px solid #e5e7eb;

  height: 100%;
}

.info-title {
  color: #6b7280;
  font-size: 0.95rem;

  display: block;

  margin-bottom: 10px;
}

.info-item-card h5 {
  font-size: 1.2rem;
  font-weight: 600;

  color: #111827;
}

/* Button */

.result-button-group {
  margin-top: 45px;

  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-back {
  background: #059669;
  color: white;

  border: none;

  padding: 14px 24px;

  border-radius: 18px;

  font-weight: 600;
}

.btn-back:hover {
  background: #047857;
  color: white;
}

.btn-history-result {
  background: white;

  border: 1px solid #d1d5db;

  padding: 14px 24px;

  border-radius: 18px;

  font-weight: 600;
}

.btn-history-result:hover {
  background: #f9fafb;
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media (max-width: 576px) {
  .result-section {
    padding: 30px 0;
  }

  .result-card {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .result-title {
    font-size: 2rem;
  }

  .level-result {
    font-size: 2rem;
  }

  .result-button-group {
    flex-direction: column;
  }

  .btn-back,
  .btn-history-result {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   HISTORY PAGE
======================================== */

.history-section {
  padding: 50px 0 80px;
}

.history-header {
  margin-bottom: 35px;
}

.history-title {
  font-size: 2.7rem;
  font-weight: 700;

  color: #111827;
}

.history-subtitle {
  margin-top: 10px;
  color: #6b7280;
}

/* Card */

.history-card {
  background: white;

  border-radius: 32px;

  padding: 30px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Table */

.history-table {
  margin: 0;
}

.history-table thead th {
  background: #f9fafb;

  padding: 18px;

  border: none;

  font-weight: 600;

  color: #374151;
}

.history-table tbody td {
  padding: 18px;

  vertical-align: middle;

  border-color: #f3f4f6;
}

/* Badge */

.level-badge {
  background: #ecfdf5;
  color: #059669;

  padding: 8px 14px;

  border-radius: 50px;

  font-size: 0.9rem;
  font-weight: 600;
}

/* Delete Button */

.btn-delete {
  background: #fee2e2;
  color: #dc2626;

  border: none;

  border-radius: 12px;

  padding: 8px 12px;
}

.btn-delete:hover {
  background: #fecaca;
  color: #b91c1c;
}

/* Empty */

.empty-history {
  text-align: center;

  padding: 60px 20px;
}

.empty-history i {
  font-size: 4rem;
  color: #9ca3af;
}

.empty-history h4 {
  margin-top: 20px;
  color: #6b7280;
}

/* Button */

.btn-back-dashboard {
  background: #059669;
  color: white;

  border: none;

  padding: 14px 22px;

  border-radius: 18px;

  font-weight: 600;
}

.btn-back-dashboard:hover {
  background: #047857;
  color: white;
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media (max-width: 576px) {
  .history-section {
    padding: 30px 0 60px;
  }

  .history-title {
    font-size: 2rem;
  }

  .history-card {
    padding: 18px;
    border-radius: 24px;
  }

  .history-table thead th,
  .history-table tbody td {
    padding: 14px;
    font-size: 0.9rem;
  }
}

/* ========================================
   SEARCH HISTORY
======================================== */

.search-box {
  display: flex;
  gap: 12px;
}

.search-input {
  border-radius: 16px;
  padding: 14px;
}

.btn-search {
  background: #059669;
  color: white;

  border: none;

  border-radius: 16px;

  padding: 0 22px;
}

.btn-search:hover {
  background: #047857;
  color: white;
}

/* ========================================
   PAGINATION
======================================== */

.pagination .page-link {
  border: none;

  margin: 0 4px;

  border-radius: 12px;

  color: #374151;

  padding: 10px 16px;
}

.pagination .page-item.active .page-link {
  background: #059669;
  color: white;
}

.pagination .page-link:hover {
  background: #ecfdf5;
  color: #059669;
}

/* ========================================
   USER MANAGEMENT BUTTON
======================================== */

.btn-user-management {
  background: #ecfdf5;
  color: #059669;

  border: none;

  padding: 10px 18px;

  border-radius: 14px;

  font-weight: 600;
}

.btn-user-management:hover {
  background: #d1fae5;
  color: #047857;
}

/* ========================================
   USERS PAGE
======================================== */

.users-section {
  padding: 50px 0 80px;
}

.users-header {
  margin-bottom: 35px;
}

.users-title {
  font-size: 2.7rem;
  font-weight: 700;

  color: #111827;
}

.users-subtitle {
  margin-top: 10px;
  color: #6b7280;
}

/* ========================================
   ADD USER CARD
======================================== */

.add-user-card {
  background: white;

  border-radius: 32px;

  padding: 35px;

  border: 1px solid #e5e7eb;

  margin-bottom: 35px;
}

/* ========================================
   USERS TABLE CARD
======================================== */

.users-table-card {
  background: white;

  border-radius: 32px;

  padding: 30px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* ========================================
   USERS TABLE
======================================== */

.users-table thead th {
  background: #f9fafb;

  padding: 18px;

  border: none;

  font-weight: 600;
}

.users-table tbody td {
  padding: 18px;

  border-color: #f3f4f6;
}

/* ========================================
   ROLE BADGE
======================================== */

.role-badge {
  background: #ecfdf5;
  color: #059669;

  padding: 8px 14px;

  border-radius: 50px;

  font-size: 0.9rem;
  font-weight: 600;
}

/* ========================================
   BUTTON
======================================== */

.btn-add-user,
.btn-save-user {
  background: #059669;
  color: white;

  border: none;

  padding: 14px 22px;

  border-radius: 18px;

  font-weight: 600;
}

.btn-add-user:hover,
.btn-save-user:hover {
  background: #047857;
  color: white;
}

/* Edit */

.btn-edit-user {
  background: #eff6ff;
  color: #2563eb;

  border: none;

  border-radius: 12px;

  padding: 8px 12px;
}

.btn-edit-user:hover {
  background: #dbeafe;
}

/* Delete */

.btn-delete-user {
  background: #fee2e2;
  color: #dc2626;

  border: none;

  border-radius: 12px;

  padding: 8px 12px;
}

.btn-delete-user:hover {
  background: #fecaca;
  color: #b91c1c;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 576px) {
  .users-section {
    padding: 30px 0 60px;
  }

  .users-title {
    font-size: 2rem;
  }

  .add-user-card,
  .users-table-card {
    padding: 22px;
    border-radius: 24px;
  }
}
