@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --white: #fff;
  --whitesmoke: whitesmoke;
  --purple: #007ef8;
  --purple-light: #2a8ff4;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --sidebar-width: 260px;
  --header-height: 70px;
  --font-1: "Outfit", sans-serif;
  --orange: #f89121;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-1);
}

body {
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  top: 5rem;
  right: 1rem;
  position: fixed;
  background-color: var(--white);
  padding: 0.5rem;
  z-index: 100;
}

#google_translate_element select {
  background-color: transparent;
  padding: 0;
}

/* Header Styles */
.header {
  background: var(--white);
  padding: 0.8rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#logo {
  height: 4.5rem;
}

.logo h4 {
  color: var(--purple);
  font-size: 1.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-1);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  gap: 0.2rem;
  cursor: pointer;
  display: none;
}

.burger div {
  height: 0.18rem;
  width: 1.4rem;
  background-color: var(--purple);
  border-radius: 10px;
}

.btn-dalali {
  background-color: var(--orange);
  color: var(--white);
}

.mobile-navigation {
  position: fixed;
  inset: 0;
  background-color: var(--white);
  z-index: 100;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(-100%);
  transition: 250ms;
}

.show-mobile-navigation {
  transform: translateX(0);
}

.mobile-navigation .header-box {
  text-align: right;
}

.header-box i {
  color: var(--purple);
  font-size: 2rem;
}

.user-info {
  display: grid;
  gap: 1rem;
}

.user-info p {
  font-size: 1.5rem;
}

.user-info a button {
  width: 100%;
  font-size: 1.8rem;
  justify-content: center;
}

.navigation-info {
  display: grid;
  gap: 1.5rem;
}

.navigation-info a {
  font-size: 2rem;
  color: var(--dark);
}

#logout {
  color: red;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
}

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

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

.btn-primary:hover {
  background: var(--purple-light);
}

/* Footer Styles */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.content-wrapper {
  padding: 2rem 5%;
}

.flash-messages {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 100%;
  max-width: 400px;
  z-index: 1000;
  display: grid;
  gap: 0.75rem;
}

.flash-message {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slide-in 0.3s ease-out forwards;
  transition: all 0.3s ease;
  overflow: hidden;
}

.flash-message::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
}

.flash-message::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--progress, 100%);
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  animation: progress 10s linear forwards;
}

.flash-content {
  flex: 1;
  padding-right: 1rem;
}

.flash-content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--white);
}

.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.flash-close svg {
  width: 16px;
  height: 16px;
}

/* Category Colors */
.flash-success {
  background-color: #4caf50;
}

.flash-info {
  background-color: #2196f3;
}

.flash-warning {
  background-color: #ff9800;
}

.flash-danger {
  background-color: #f44336;
}

/* Animations */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Hover pause animation */
.flash-message:hover::before {
  animation-play-state: paused;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-menu,
  .header-actions {
    display: none;
  }

  .burger {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  #logo {
    height: 3rem;
  }
}
