:root {
  --theme-color: #4e73df;
}

/* --- Styles --- */
.hero-header {
  background: white;
  padding: 30px 0 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.hero-title {
  font-weight: 700;
  font-size: 1.8rem;
  color: #2d3748;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #718096;
}

.filter-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #eef2f6;
}

.year-select-container {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.custom-year-select {
  width: 100%;
  height: 48px;
  padding-left: 45px !important;
  padding-right: 35px !important;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px !important;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-year-select:hover {
  border-color: var(--theme-color);
  background-color: #fff;
}

.custom-year-select:focus {
  outline: none;
  border-color: var(--theme-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background-color: #fff;
}

.icon-left {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-color);
  pointer-events: none;
  font-size: 1.1rem;
}

.file-item {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #f1f1f1;
  background: white;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  position: relative;
}

.file-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--theme-color);
}

.file-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  margin-right: 15px;
  flex-shrink: 0;
}

.icon-pdf {
  background: #ffebee;
  color: #ef5350;
}

.icon-doc {
  background: #e3f2fd;
  color: #4e73df;
}

.file-info {
  flex-grow: 1;
  min-width: 0;
  margin-right: 15px;
}

.file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
}

.file-meta {
  font-size: 0.85rem;
  color: #a0aec0;
}

.action-group {
  position: relative;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
}

.action-group .btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
  color: #718096;
  border: none;
  margin-left: 5px;
  transition: 0.2s;
}

.action-group .btn:hover {
  background: var(--theme-color);
  color: white;
}

.action-group .btn-edit:hover {
  background: #f6c23e;
  color: white;
}

.action-group .btn-del:hover {
  background: #ef5350;
  color: white;
}

.btn-upload-custom {
  background: var(--theme-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
  transition: 0.3s;
}

.btn-upload-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
  color: white;
}

.content-area {
  padding-top: 20px;
  min-height: 600px;
}

.section-title {
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 25px;
  background: var(--theme-color);
  border-radius: 20px;
  margin-right: 12px;
}

@media (max-width: 768px) {
  .hero-header .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-header .text-md-left {
    text-align: center !important;
    margin-bottom: 15px;
  }

  .filter-card-body {
    flex-direction: column;
    text-align: center;
  }

  .info-wrapper {
    margin-bottom: 15px;
    justify-content: center;
  }
}

/* FIX: Hide excess SweetAlert elements */
.swal2-input,
.swal2-file,
.swal2-textarea,
.swal2-select,
.swal2-radio,
.swal2-checkbox {
  display: none !important;
}