/* WpSeoWriter - Styles principaux */

:root {
  --primary-color: #4e73df;
  --primary-light: #6583e2;
  --secondary-color: #1cc88a;
  --dark-color: #5a5c69;
  --light-color: #f8f9fc;
  --danger-color: #e74a3b;
  --warning-color: #f6c23e;
}

body {
  min-height: 100vh;
  background-color: #f8f9fc;
}

.bg-login-image {
  background: url("../img/login-bg.jpg");
  background-position: center;
  background-size: cover;
}

.login-form {
  background-color: white;
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.sidebar {
  min-height: 100vh;
  background-color: #4e73df;
  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
}

.sidebar-brand {
  height: 4.375rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1.5rem 1rem;
  text-align: center;
  letter-spacing: 0.05rem;
  z-index: 1;
}

.sidebar-brand .sidebar-brand-text {
  color: white;
}

.sidebar .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem;
}

.sidebar .nav-item .nav-link:hover {
  color: white;
}

.sidebar .nav-item .nav-link i {
  margin-right: 0.5rem;
}

.topbar {
  height: 4.375rem;
}

.topbar .navbar-search {
  width: 25rem;
}

.card {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

/* Formulaire SEO */
.seo-form-container {
  margin-bottom: 30px;
}

.form-progress {
  height: 10px;
  margin-bottom: 20px;
}

.progress-step {
  background-color: var(--primary-light);
}

.form-section {
  margin-bottom: 20px;
}

.section-h2, .section-h3 {
  margin-bottom: 15px;
  position: relative;
}

.section-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.form-control.title-input {
  font-size: 1.25rem;
  font-weight: 500;
}

.char-counter {
  font-size: 0.8rem;
  color: #6c757d;
  float: right;
}

.char-counter.warning {
  color: var(--warning-color);
}

.char-counter.danger {
  color: var(--danger-color);
}

.add-section-btn, .add-subsection-btn, .add-paragraph-btn {
  margin: 10px 0;
}

.remove-btn {
  color: var(--danger-color);
  cursor: pointer;
  margin-left: 10px;
}

/* Historique et Diff */
.history-list {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  cursor: pointer;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.history-item:hover {
  background-color: #f8f9fc;
}

.history-item.active {
  background-color: #e8f0fe;
}

.diff-added {
  background-color: #e6ffed;
  text-decoration: none;
}

.diff-removed {
  background-color: #ffeef0;
  text-decoration: line-through;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 6.5rem !important;
  }
  
  .sidebar .nav-item .nav-link span {
    display: none;
  }
  
  .sidebar .nav-item .nav-link i {
    font-size: 1rem;
    margin-right: 0;
  }
  
  .sidebar .sidebar-brand .sidebar-brand-text {
    display: none;
  }
  
  .topbar .navbar-search {
    width: 100%;
  }
}

/* Styles pour la prévisualisation */
.article-preview {
  padding: 20px;
  line-height: 1.6;
  font-size: 16px;
}

.article-preview h1 {
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.article-preview h2 {
  color: #34495e;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 5px;
  border-bottom: 1px solid #f0f0f0;
}

.article-preview h3 {
  color: #3498db;
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.article-preview p {
  margin-bottom: 1rem;
  text-align: justify;
}

#preview-container {
  background-color: white !important;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  min-height: 300px;
  max-height: 600px;
  overflow-y: auto;
} 