/* static/css/custom.css */

/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --body-bg: #f5f8fa;
    --sidebar-bg: #2c3e50;
    --header-height: 56px;
  }
  
  /* Base */
  body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
  }
  
  /* En-tête */
  .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  /* Cartes */
  .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin-bottom: 1.5rem;
    border: none;
  }
  
  .card-header {
    font-weight: 600;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  }
  
  /* Tableaux */
  .table {
    margin-bottom: 0;
  }
  
  .table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
  }
  
  /* Badges */
  .badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75em;
  }
  
  /* Formulaires */
  .form-control:focus,
  .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
  }
  
  .form-label {
    font-weight: 500;
  }
  
  /* Boutons */
  .btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
  }
  
  /* Alertes */
  .alert {
    border-radius: 0.25rem;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* États des documents */
  .status-available {
    color: var(--success-color);
  }
  
  .status-processing {
    color: var(--warning-color);
  }
  
  .status-checked-out {
    color: var(--danger-color);
  }
  
  .status-restricted {
    color: var(--secondary-color);
  }
  
  .status-disposed {
    color: #777;
  }
  
  /* Types de documents */
  .type-physical {
    color: var(--success-color);
  }
  
  .type-digital {
    color: var(--info-color);
  }
  
  .type-hybrid {
    color: var(--warning-color);
  }
  
  /* Pagination */
  .pagination {
    margin-bottom: 0;
  }
  
  .page-link {
    color: var(--secondary-color);
  }
  
  .page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
  }
  
  /* Fil d'Ariane */
  .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
  }
  
  /* Animations */
  .card, .btn {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  }
  
  .card:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  }
  
  /* Sidebar */
  @media (min-width: 992px) {
    .sidebar {
      position: fixed;
      top: var(--header-height);
      bottom: 0;
      left: 0;
      width: 250px;
      overflow-y: auto;
      background-color: var(--sidebar-bg);
      padding: 1.5rem 0;
      z-index: 100;
    }
  
    .sidebar .nav-link {
      color: rgba(255, 255, 255, 0.75);
      border-left: 3px solid transparent;
      padding: 0.75rem 1rem;
      font-weight: 500;
    }
  
    .sidebar .nav-link:hover {
      color: #fff;
      background-color: rgba(255, 255, 255, 0.05);
    }
  
    .sidebar .nav-link.active {
      color: #fff;
      border-left-color: var(--secondary-color);
      background-color: rgba(52, 152, 219, 0.2);
    }
  
    .sidebar .nav-link i {
      margin-right: 0.5rem;
    }
  
    .content-wrapper {
      margin-left: 250px;
      padding: 1.5rem;
    }
  }
  
  /* Login et authentification */
  .auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
  }
  
  .auth-form-container {
    max-width: 420px;
    width: 100%;
  }
  
  .auth-logo {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .auth-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
  }
  
  /* Couleurs des statuts des documents */
  .doc-status {
    display: inline-flex;
    align-items: center;
  }
  
  .doc-status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
  }
  
  .doc-status.status-available::before {
    background-color: var(--success-color);
  }
  
  .doc-status.status-processing::before {
    background-color: var(--warning-color);
  }
  
  .doc-status.status-checked-out::before {
    background-color: var(--danger-color);
  }
  
  .doc-status.status-restricted::before {
    background-color: var(--secondary-color);
  }
  
  .doc-status.status-disposed::before {
    background-color: #777;
  }
  
  /* Utilitaires */
  .cursor-pointer {
    cursor: pointer;
  }
  
  .min-width-150 {
    min-width: 150px;
  }
  
  .text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Page de login */
  .login-page {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .login-container {
    width: 100%;
    max-width: 420px;
    padding: 15px;
  }
  
  .login-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .login-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
  }
  
  .login-body {
    padding: 2rem;
    background-color: white;
  }
  
  .login-footer {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
  }
  
  /* Footer */
  .footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: #6c757d;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
  }
  
  /* Impression */
  @media print {
    .no-print {
      display: none !important;
    }
    
    body {
      background-color: white;
    }
    
    .card {
      box-shadow: none;
      border: 1px solid #ddd;
    }
    
    .container {
      width: 100%;
      max-width: 100%;
      padding: 0;
    }
  }