/* Modern UI Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #8b5cf6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1f2937;
  --light: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--dark);
}

/* Header */
.modern-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-section img {
/*  height: 60px;*/
  width: 100%;
}

.home-link {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.home-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Main Container */
.main-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.page-title {
  text-align: center;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.card-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.card-link:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Form Styles */
.form-container {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header img {
  max-width: 200px;
  margin-bottom: 1rem;
}

.form-header h2 {
  color: var(--dark);
  font-size: 1.75rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: 'Poppins', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 3rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Table Styles */
.table-container {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}

table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

table.dataTable thead th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 1rem;
  font-weight: 600;
  text-align: left;
  border: none;
}

table.dataTable tbody td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

table.dataTable tbody tr:hover {
  background: var(--light);
}

table.dataTable tbody td img {
  max-width: 100px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Filter Section */
.filter-section {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.filter-section select,
.filter-section input[type="text"] {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  margin-right: 1rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
}

.filter-section button,
.filter-section input[type="submit"] {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-section button:hover,
.filter-section input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.header-container a:hover {color: #FFF;}
/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-section select,
  .filter-section input[type="text"],
  .filter-section button {
    margin: 0.5rem 0;
    width: 100%;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.p-2 { padding: 1rem; }

/* DataTables Report Fixes */
.dataTables_wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  width: 100%;
}
.dataTables_wrapper table.dataTable {
  border-collapse: collapse !important;
  width: 100% !important;
}
.dataTables_wrapper table.dataTable thead th {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: var(--white) !important;
  padding: 0.75rem 1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  border: 1px solid #ddd !important;
}
.dataTables_wrapper table.dataTable tbody td {
  padding: 0.75rem 1rem !important;
  border: 1px solid #ddd !important;
  text-align: center !important;
}
.dataTables_wrapper table.dataTable tbody tr:hover td {
  background: var(--light) !important;
}
.dt-buttons { margin-bottom: 0.75rem; display: flex; flex-wrap: wrap; gap: 4px; }
.dt-button {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.4rem 1rem !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.dt-button:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}
.dataTables_filter input {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-family: 'Poppins', sans-serif;
}
.dataTables_length select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  font-family: 'Poppins', sans-serif;
}
.dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  padding: 0.3rem 0.75rem !important;
}
.dataTables_paginate .paginate_button.current {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
}
