:root {
  --primary: #2e6171;
  --primary-dark: #1e4049;
  --primary-light: #3d7f93;
  --accent: #ffa500;
  --light: #f8f9fa;
  --dark: #343a40;
  --text: #212529;
  --text-light: #6c757d;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
  color: var(--text);
}

/* Layout */
.content-wrapper {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  max-width: 1200px;
}

.footer {
  flex-shrink: 0;
  background-color: var(--primary);
  color: white;
  width: 100%;
}

/* Navigation */
.navbar {
  background-color: var(--primary);
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:active {
  background-color: var(--primary);
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

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

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(46, 97, 113, 0.25);
}

.btn-link {
  text-decoration: none;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.card-body {
  padding: 1.75rem;
}

.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.75rem;
  font-weight: 600;
}

.card-header:first-child {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

/* Badges */
.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
}

/* Tables */
.table {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: #fff;
}

.table th {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  font-weight: 500;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem 0;
  width: 100%;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
}

/* Forms */
.form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
}

/* Custom styles for member lists */
#admin_member_list ul#members {
  list-style: none;
  padding: 0;
}

#admin_member_list ul#members li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

#admin_member_list ul#members li:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Drop zone */
#drop_zone {
  border: 2px dashed #ced4da;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

#drop_zone:hover {
  border-color: var(--primary-light);
  background-color: rgba(46, 97, 113, 0.03);
}

#drop_zone.dragging {
  background-color: rgba(46, 97, 113, 0.08);
  border-color: var(--primary);
}

/* Style pour les candidats */
.candidats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.candidats:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.candidats img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 3px solid var(--primary-light);
}

/* Utility classes */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Responsive styles */
@media (max-width: 768px) {
  .card-body {
    padding: 1.25rem;
  }

  .table th, .table td {
    padding: 0.75rem;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .btn, form {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  body {
    background-color: #fff;
  }
}