/* Styles communs pour toutes les pages */
body {
  background: linear-gradient(135deg, #E9F6FF 0%, #F0F7FF 50%, #F8F1FF 100%);
}

/* Style du slogan */
.slogan {
    font-size: 1.125rem;
    font-style: italic;
    color: #6366F1;
    text-align: center;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 600px;
    line-height: 1.5;
    position: relative;
}

/* Conteneurs */
.container-white {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Boutons d'action */
.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    height: 120px;
    padding: 1.5rem;
}

.action-button i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.action-button span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.action-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Cartes */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
}

.card-header.lent {
    background: linear-gradient(135deg, #FEE2E2 0%, #FEF2F2 100%);
    color: #991B1B;
    border-bottom: 2px solid #FCA5A5;
}

.card-header.borrowed {
    background: linear-gradient(135deg, #DCFCE7 0%, #F0FDF4 100%);
    color: #166534;
    border-bottom: 2px solid #86EFAC;
}

.card-body {
    padding: 1.5rem;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-counter {
    background: white;
    color: #1F2937;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 50;
}

/* Cercles décoratifs */
.decorative-circle {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.3) 0%, rgba(186, 230, 253, 0.3) 100%);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(216, 180, 254, 0.3) 0%, rgba(240, 171, 252, 0.3) 100%);
    bottom: -50px;
    right: -50px;
}

/* Formulaires */
.input-field {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.input-field:focus {
    background: white;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Boutons */
.primary-button {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.primary-button:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Notifications */
.notification-badge {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0 0.25rem;
}

/* Barre de recherche */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.75rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    background: white;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.search-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    font-size: 0.875rem;
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.25rem;
    display: none;
    background: none;
    border: none;
    font-size: 0.875rem;
}

.clear-search:hover {
    color: #4B5563;
}

/* Styles pour la vue en liste */
.list-view .item-card {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.list-view .item-card > div {
    display: flex;
    flex-direction: column;
}

.list-view .item-card .flex.items-start {
    flex-direction: row;
    width: 100%;
}

/* Styles pour la vue en grille */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-view .item-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-view .item-card > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-view .item-card .flex.items-start {
    flex: 1;
}

.grid-view .item-card .ml-6.flex-grow {
    min-height: 0;
    overflow: hidden;
}

/* Style pour les éléments en retard */
.overdue-status {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border: 1px solid #DC2626;
}

/* Styles spécifiques pour les détails supplémentaires en mode liste */
.list-view .item-details {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.grid-view .item-details {
    display: none;
}

.detail-section {
    margin-bottom: 1rem;
}

.detail-section h4 {
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 0.5rem;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.status-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.status-warning {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Media Queries */
@media (max-width: 768px) {
    .action-buttons-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .action-button {
        height: 100px;
        padding: 1rem;
    }

    .action-button i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

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