/* Base Styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0a58ca;
}

/* Layout */
.container {
  max-width: 1200px;
  padding: 0 15px;
}

/* Cards */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0 !important;
}

/* Buttons */
.btn {
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Forms */
.form-control {
  border-radius: 6px;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
  border-radius: 6px;
  padding: 1rem;
}

.alert-dismissible .btn-close {
  padding: 1rem;
}

/* Tables */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: var(--light-color);
  font-weight: 600;
}

.table td, .table th {
  padding: 12px 15px;
  vertical-align: middle;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
}

/* Utility Classes */
.rounded-lg {
  border-radius: 12px;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Custom Components */
.access-card {
  border: 1px solid rgba(0, 0, 0, 0.125);
  max-width: 600px;
}

.conference-title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.barcode-container {
  padding: 1rem;
  border: 1px dashed #dee2e6;
  border-radius: 5px;
  background-color: white;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  
  .access-card, .access-card * {
    visibility: visible;
  }
  
  .access-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }
  
  .no-print {
    display: none !important;
  }
}

/* Hover effect for nav links */
.navbar-nav .nav-link:hover {
    color: #ffd700 !important; /* golden color */
    transition: color 0.3s ease;
}

/* Active link */
.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: bold;
}

/* Dropdown menu style */
.dropdown-menu .dropdown-item:hover {
    background-color: #0d6efd;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
  
  .table-responsive {
    overflow-x: auto;
  }
  
  /* Footer Styles */
.footer {
    background-color: #212529;
    color: white;
}

.footer a {
    color: #adb5bd;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 99;
}

/* Toast Notifications */
.toast-container {
    z-index: 1100;
}

.toast {
    max-width: 350px;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

}

/* Pharma specific indicators */
.pharma-indicator {
    background: linear-gradient(90deg, transparent 0%, #4a148c 10%, #4a148c 90%, transparent 100%);
    color: white;
    padding: 3px 0;
    font-size: 0.8rem;
    text-align: center;
}

/* Highlight current section */
.nav-item.pharma-active a {
    font-weight: 600;
    background: rgba(255,255,255,0.15);
}

/* Loading spinner */
.btn .spinner-border {
    vertical-align: middle;
    margin-right: 5px;
}

/* Status messages */
#uploadStatus .alert {
    margin-bottom: 0;
}

/* File input styling */
#receiptFile {
    padding: 0.375rem;
}

/* Modal transitions */
.modal.fade {
    transition: opacity 0.15s linear;
}