@tailwind base;
@tailwind components;
@tailwind utilities;

/* ═══ Topbar / Primary Navbar ══════════════════════════════════════════════ */
.topbar {
  --bg:        #1f2937; /* gray-800 */
  --bg-2:      #374151; /* gray-700 */
  --ink:       #f9fafb; /* gray-50  */
  --ink-2:     #9ca3af; /* gray-400 */
  --ink-3:     #6b7280; /* gray-500 */
  --line:      #374151; /* gray-700 */
  --line-2:    #4b5563; /* gray-600 */
  --blue:      #60a5fa; /* blue-400 */
  --blue-soft: rgba(96,165,250,.14);
  --blue-ring: rgba(96,165,250,.45);
  --red:       #f87171; /* red-400  */
  --red-soft:  rgba(248,113,113,.10);
  --red-ring:  rgba(248,113,113,.45);

  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px; gap: 24px;
  position: relative;
}

/* brand */
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; letter-spacing: -.01em; flex-shrink: 0;
}
.topbar .topbar-mark {
  width: 30px; height: 30px;
  overflow: hidden; flex-shrink: 0;
}
.topbar .topbar-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topbar .topbar-name  { font-size: 15px; font-weight: 700; line-height: 1; color: var(--ink); }

/* nav cluster */
.topbar nav.primary { display: flex; align-items: center; gap: 2px; }

.nav-item {
  --c:   var(--ink);
  --c-ic: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  color: var(--c); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.nav-item svg { color: var(--c-ic); transition: color .15s ease; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.04); }
.nav-item:hover svg { color: var(--ink); }
.nav-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* active pill */
.nav-item[data-active="true"][data-style="pill"] {
  background: var(--blue-soft);
  border-color: var(--blue-ring);
  --c: var(--blue); --c-ic: var(--blue);
}
.nav-item[data-active="true"][data-style="pill"] svg { color: var(--blue); }

.nav-divider { width: 1px; height: 22px; background: var(--line); margin: 0 8px; flex-shrink: 0; }

/* logout */
.nav-item.danger { --c: var(--red); --c-ic: var(--red); }
.nav-item.danger svg { color: var(--red); }
.nav-item.danger[data-logout="outlined"] { border-color: var(--red-ring); background: var(--red-soft); }
.nav-item.danger:hover { background: rgba(255,90,78,.10); }

/* hamburger (mobile only) */
.topbar-hamburger {
  display: none; background: none; border: none;
  color: var(--ink-2); cursor: pointer;
  padding: 8px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  flex-shrink: 0;
}
.topbar-hamburger:hover { background: rgba(255,255,255,.06); color: var(--ink); }

@media (max-width: 767px) {
  .topbar-hamburger { display: flex; align-items: center; justify-content: center; }
  .topbar nav.primary {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px; gap: 4px; z-index: 29;
  }
  .topbar nav.primary.open { display: flex; }
  .nav-divider { width: 100%; height: 1px; margin: 8px 0; }
}



@layer components {
  .btn-primary {
    padding: 0.5rem 1rem;
    background-color: #bfdbfe;
  }

  .btn-login {
    @apply shadow-md shadow-gray-500 shadow-sm;
    @apply flex justify-center items-center w-full rounded-md bg-blue-700 px-3 py-1.5;
    @apply text-sm font-semibold leading-6 text-white hover:bg-indigo-900;
    @apply focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer;
  }
  

  .input-field {
    @apply block w-full border-0 border-b-2 border-gray-300 py-1.5 text-gray-900 focus:border-indigo-600 focus:ring-0 focus:outline-none sm:text-sm sm:leading-6;
  }

  .nav-link {
    @apply py-1 px-1 flex items-center rounded-md gap-2 md:hover:bg-transparent hover:text-gray-400;
  }
  
}


/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@import 'gdpr/cookie_consent';

/* Custom GDPR Cookie Consent Styling */
.gdpr__cookie_consent {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95)) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    bottom: 20px !important;
    font-size: 14px !important;
    left: 20px !important;
    max-width: 480px !important;
    padding: 20px !important;
    position: fixed !important;
    right: 20px !important;
    z-index: 9999 !important;
    color: #374151 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.gdpr__cookie_consent a {
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.gdpr__cookie_consent a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

.gdpr__cookie_consent__text {
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
}

.gdpr__cookie_consent__buttons {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
}

.gdpr__cookie_consent__buttons__ok,
.gdpr__cookie_consent__buttons__ko {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.gdpr__cookie_consent__buttons__ok:hover,
.gdpr__cookie_consent__buttons__ko:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.gdpr__cookie_consent__buttons__ko {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
}

.gdpr__cookie_consent__buttons__ko:hover {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
}

/* Responsive design */
@media (max-width: 640px) {
    .gdpr__cookie_consent {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        max-width: none !important;
    }

    .gdpr__cookie_consent__buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .gdpr__cookie_consent__buttons__ok,
    .gdpr__cookie_consent__buttons__ko {
        width: 100% !important;
    }
}

#back {
  background-color: #f5f5f5;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  padding: 15px;
  margin-top: 30px;
}
#container {
  box-shadow: 1px 5px 10px gray;
  border-radius: 10px;
}
#calendar {
  border-radius: 10px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark transparent background */
  backdrop-filter: blur(8px); /* Blur effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it's above everything else including navbar */
}

.modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%; /* Adjust width as needed */
  max-width: 600px; /* Limit maximum width */
  padding: 2rem; /* Inner padding */
  overflow-y: auto; /* Enable scrolling if content is too long */
  max-height: 90vh; /* Limit height to 90% of the viewport */
}

.cancel-button {
  background-color: #1530ff;
  font-size: 12px;
  color: white;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  text-decoration: none;
}
.cancel-button:hover {
  background-color: #2640fe;
}

.congratulations-card {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
  padding: 20px;
  text-align: center;
  max-width: 800px;
  margin: 80px auto;
}

.congratulations-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.congratulations-message {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.congratulations-submessage {
  font-size: 1rem;
  opacity: 0.9;
}

.modern-grid-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #111827; /* Tailwind gray-900, same as navbar */
}
