/* CSS Variables for consistent theming */
:root {
  --primary-color: #a2d063;
  --primary-hover: #87bb4d;
  --secondary-color: #114a91;
  --accent-color: #8fb1d5;
  --accent-secondary: #e54a2d;
  --text-primary: #114a91;
  --text-secondary: #8fb1d5;
  --text-light: rgba(255, 255, 255, 0.8);
  --background-primary: #fff;
  --background-card: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.3);
  --shadow-primary: rgba(162, 208, 99, 0.3);
  --shadow-hover: rgba(162, 208, 99, 0.4);
  --google-color: #db4437;
  --facebook-color: #4267B2;
  --twitter-color: #1DA1F2;
  --linkedin-color: #0077B5;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-primary);
  min-height: 100vh;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Button styles */
.cta-button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow-primary);
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

/* Social button styles */
.social-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-btn.google {
  background-color: var(--google-color);
}

.social-btn.facebook {
  background-color: var(--facebook-color);
}

.social-btn.twitter {
  background-color: var(--twitter-color);
}

.social-btn.linkedin {
  background-color: var(--linkedin-color);
}

/* Form styles */
input[type="email"],
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(162, 208, 99, 0.1);
}

/* Feature card styles */
.feature-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Divider styles */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
}

.divider span {
  background-color: var(--secondary-color);
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* Error page styles */
.error-icon {
  color: var(--accent-secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.7; 
  }
}

/* Utility classes */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .logo-section img {
    max-width: 320px !important;
  }
  
  .social-btn span {
    display: none;
  }
  
  .social-btn {
    justify-content: center;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.25rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

/* Width utilities */
.w-full {
  width: 100%;
}

.max-w-full {
  max-width: 100%;
}

/* Height utilities */
.h-auto {
  height: auto;
}

.min-h-screen {
  min-height: 100vh;
}

/* Border radius utilities */
.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

/* Shadow utilities */
.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Font weight utilities */
.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* Opacity utilities */
.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

/* Border utilities */
.border-none {
  border: none;
}

/* Cursor utilities */
.cursor-pointer {
  cursor: pointer;
}

/* Text decoration utilities */
.no-underline {
  text-decoration: none;
}

/* Display utilities */
.inline-block {
  display: inline-block;
}

.hidden {
  display: none;
}

/* Position utilities */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Leading utilities */
.leading-relaxed {
  line-height: 1.625;
}


/* Suggestion list styles */
#suggestionList {
  z-index: 9999;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  pointer-events: auto;
}

#suggestionList .list-group-item {
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid #e9ecef;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  transition: background-color 0.15s ease-in-out;
}

#suggestionList .list-group-item:last-child {
  border-bottom: none;
}

#suggestionList .list-group-item:hover {
  background-color: #f8f9fa;
  color: var(--text-primary);
}

#suggestionList .list-group-item:focus {
  outline: none;
  background-color: var(--accent-color);
  color: #fff;
}


/* DataTables styles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  font-size: 0.875rem !important; /* text-sm */
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-size: 0.875rem !important;
  font-weight: 500;
  color: #114a91;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  font-size: 0.875rem !important;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #e9ecef;
  margin-left: 0.25rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.25rem 0.5rem !important;
  margin: 0 0.125rem;
  border-radius: 0.375rem !important;
  background: #f8f9fa !important;
  color: #114a91 !important;
  border: none !important;
  font-weight: 500;
  transition: background 0.2s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #a2d063 !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_info {
  color: #114a91;
  font-weight: 500;
}
/* Remove default DataTables blue focus outline */
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #a2d06333;
}
