/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap");

@font-face {
  font-family: "Sukhumvit";
  /*src: url('vender/sukhumvit-set/SukhumvitSet-Bold.ttf');
  src: url('../vendor/sukhumvit/SukhumvitSet--Light.ttf');*/
  src: url("../vendor/sukhumvit/SukhumvitSet-Medium.ttf") format("truetype");
  /*src: url('../vendor/sukhumvit/SukhumvitSet-SemiBold.ttf');
  src: url('../vendor/sukhumvit/SukhumvitSet-Text.ttf');
  src: url('../vendor/sukhumvit/SukhumvitSet-Thin.ttf');*/
}
/* Global Styles */
*:not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: "Sukhumvit", sans-serif !important;
}

body {
  background-color: #f0f2f5;
  color: #333;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin: 0;
}

/* Common Card Style */
.main-card,
.admin-card,
.login-card {
  background: #ffffff;
  border: none;
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* Form Elements */
.form-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  transition: all 0.2s ease;
  border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-control[readonly] {
  background-color: #e9ecef;
  opacity: 1;
  pointer-events: none;
  border-color: #dee2e6;
}

/* Buttons */
.btn-premium-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 0.6rem;
  font-weight: 600;
  color: white;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  color: white;
}

.btn-premium-secondary {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 0.7rem 2rem;
  border-radius: 0.6rem;
  font-weight: 600;
}

/* Section Headers */
.section-header {
  background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
  color: white;
  border-radius: 1.2rem 1.2rem 0 0;
  margin: -2.5rem -2.5rem 2rem -2.5rem;
  padding: 1.5rem 2.5rem;
}

.sub-card-header {
  background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
  color: white;
  border-radius: 0.8rem 0.8rem 0 0 !important;
  border: none;
  padding: 1rem 1.5rem;
}

/* File Tags (index.php) */
#fileList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.file-tag {
  background: #e7f1ff;
  color: #0d6efd;
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #cfe2ff;
}

.file-tag .btn-remove {
  color: #dc3545;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-weight: bold;
}

/* Form Part Titles (index.php) */
.form-part-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f1f3f5;
}

.step-badge {
  background: #0dcaf0;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(13, 202, 240, 0.3);
}

.divider-label {
  position: relative;
  text-align: center;
  margin: 3rem 0;
}

.divider-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #dee2e6;
  z-index: 1;
}

.divider-label span {
  position: relative;
  background: white;
  padding: 0 1.5rem;
  color: #6c757d;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 2;
}

/* Login Page Specific */
.login-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
}

/* Fix SweetAlert2 height-auto issue which causes UI shift */
body.swal2-height-auto.login-body {
  height: 100vh !important;
}

.login-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-icon {
  font-size: 3.5rem;
  color: #764ba2;
  margin-bottom: 1.5rem;
}

.btn-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 0.8rem;
  border-radius: 0.8rem;
  width: 100%;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
  color: white;
}

/* Admin Dashboard Specific */
.admin-card {
  margin-top: 2rem;
  padding: 2rem;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

.btn-detail {
  border-radius: 0.5rem;
  padding: 0.4rem 1rem;
  font-weight: 500;
}

.file-link {
  text-decoration: none;
  color: #6c757d;
  margin-right: 0.5rem;
}

.file-link:hover {
  color: #0d6efd;
}

.btn-register {
  background-color: #ffc107;
  border: none;
  color: #000;
  font-weight: 500;
}

.btn-register:hover {
  background-color: #e0a800;
}
