/**
 * Main Stylesheet
 * Klick&Sell Académie Dashboard
 */
/* Base - Fondamentaux */
@import "./base/variables.css";
@import "./base/reset.css";
@import "./base/typography.css";

/* Utils - Utilitaires et helpers */
@import "./utils/helpers.css";
@import "./utils/animations.css";

/* Layout - Structure */
@import "./layout/grid.css";
@import "./layout/navbar.css";
@import "./layout/sidebar.css";

/* Components - Éléments réutilisables */
@import "./components/alerts.css";
@import "./components/buttons.css";
@import "./components/cards.css";
@import "./components/forms.css";
@import "./components/tables.css";

/* Pages - Styles spécifiques aux pages */
@import "./pages/auth.css";
@import "./pages/dashboard.css";
@import "./pages/users.css";
@import "./pages/tools.css";
@import "./pages/home.css";
@import "./pages/question.css";

/* Variables globales */
:root {
  --primary-color: #e31e24;
  --dark-bg: #1a1a1a;
  --light-bg: #fffcf6;
}

/* Styles globaux */
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-bg);
}

/* Layout principal */
.navbar {
  background-color: #fdf5e1;
  /* background: var(--light-bg); */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
}

.navbar-brand img {
  height: 62px;
}

.btn-logout {
  /* background-color: var(--primary-color); */
  background-color: var(--dark-bg);
  color: white;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #333333;
  color: white;
}

.main-content {
  padding: 2rem;
  margin-top: 80px;
}

.user-info {
  text-align: right;
  color: #333;
  font-size: 0.9rem;
}

.user-info strong {
  display: block;
  font-size: 1.1rem;
}
.sidebar{
left:-1000px;
}
.sidebar .nav-link {
    color: #000 !important;
}
/* Page de connexion */
.login-body {
  background-image: url("../assets/images/dashboard/background.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.login-container {
  background-color: rgba(255, 252, 246, 0.95);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}
.navbar > .container-fluid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.welcome-text {
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #666;
  margin-bottom: 2rem;
}

/* Formulaires */
.form-control {
  border-radius: 8px;
  padding: 0.8rem;
  border: 1px solid #ddd;
}

.btn-connect {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  padding: 0.8rem;
  font-weight: 600;
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn-connect:hover {
  background-color: #c41a1f;
  border-color: #c41a1f;
  color: white;
}

/* Dashboard */
.tools-header h1 {
  color: #333;
  font-weight: 600;
}

.tool-card {
  /* background: var(--dark-bg); */
  background-image: url("../assets/images/dashboard/fond-card.jpeg");
  background-size: contain;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Section promo */
.promo-section {
  margin-top: 4rem;
  padding: 2rem;
}

.btn-promo {
  background-color: white;
  color: var(--dark-bg);
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn-promo:hover {
  background-color: #f8f9fa;
  color: var(--dark-bg);
}

/* Media Queries */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem;
  }

  .navbar-brand img {
    height: 50px;
  }

  .user-info {
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }

  .user-info strong {
    font-size: 0.9rem;
  }

  .btn-logout {
    padding: 0.4rem 0.8rem;
    /* font-size: 0.9rem; */
    font-size: 10px;
  }

  .main-content {
    padding: 1rem;
    margin-top: 60px;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .tool-logo {
    max-width: 150px;
  }

  .shopify-promo {
    padding: 0rem;
  }

  .shopify-promo img {
    max-width: fit-content;
    width: 120%;
    left: -40px;
    position: absolute;
  }

  .welcome-text {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .tools-header h1 {
    font-size: 1.8rem;
  }

  .tool-logo {
    max-width: 120px;
  }

  .btn-connect,
  .btn-promo {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .shopify-promo h3 {
    font-size: 1.5rem;
  }

  .login-container {
    margin: 1rem;
    padding: 1.5rem;
  }
}
