/* ========== HEADER & NAVIGATION STYLES EXTRACTED ========== */

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

body, html {
  height: 100vh;
  /* overflow: hidden; */
  margin: 0;
  padding: 0;
}

/* Top Background Image */
.top-background {
  width: 100%;
  height: 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.554);
}

/* Header Container */
.header {
  background: #f5f5f5;
  display: flex;
  align-items: stretch;
  position: sticky;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Bookmark Ribbon */
.bookmark-ribbon {
  position: fixed;
  top: 0;
  left: 20px;
  width: 90px;
  height: 20vh;
  background: linear-gradient(135deg, #ffffff, rgba(155,215,255,0));
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.494);
  z-index: 9999;
}

.logo-circle {
  width: 70px;
  height: 70px;
  background-image: url('../assets/images/Logo_UnivToliara_800p_5103x5545.png');
  background-size: cover;
  background-position: center;
  border-radius: 0%; /* ou 0% selon ton style */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.494);
}


/* Navigation Tabs */
.main-nav {
  display: flex;
  margin-left: auto;
  align-items: stretch;
}

.nav-tab {
  padding: 12px 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-right: 2px;
}

.nav-tab[data-color="orange"] {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.nav-tab[data-color="red"] {
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
}

.nav-tab[data-color="green"] {
  background: linear-gradient(135deg, #51cf66, #40c057);
}

.nav-tab[data-color="purple"] {
  background: linear-gradient(135deg, #9775fa, #7c3aed);
}

.nav-tab[data-color="gray"] {
  background: linear-gradient(135deg, #868e96, #495057);
}

.nav-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-tab.active {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.nav-tab:hover::before {
  left: 100%;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    padding: 5px;
  }

  .nav-tab {
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 2px;
  }

  .bookmark-ribbon {
    width: 60px;
  }

  .logo-circle {
    width: 25px;
    height: 25px;
  }
}
