/* Styles pour le carnet de santé */

/* Styles pour le switch de renouvellement */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-label {
    font-weight: 500;
    color: #333;
}

/* Styles pour les vaccinations */
.health-records-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vaccination-section {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.vaccination-section h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #eee;
}

.health-record-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.health-record-item:last-child {
    border-bottom: none;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.record-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.record-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.record-date {
    color: #666;
    font-size: 0.9rem;
}

.record-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.btn-icon:hover {
    color: #333;
}

.record-expiry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.record-expiry.expired {
    background-color: #fee;
    color: #d32f2f;
}

.record-expiry.expiring-soon {
    background-color: #fff3e0;
    color: #ef6c00;
}

.record-expiry.renewed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.expiry-date {
    font-weight: 500;
}

.expiry-status {
    font-size: 0.9rem;
}

.vet-info {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 4px;
    background-color: #f5f5f5;
    margin: 1rem 0;
}

.vet-info.emergency {
    background-color: #ffebee;
}

.vet-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.vet-name {
    font-weight: 500;
    color: #333;
}

.emergency-badge {
    background-color: #d32f2f;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.record-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* États des sections de vaccination */
.vaccination-section.expiring-soon h4 {
    color: #ef6c00;
    background-color: #fff3e0;
}

.vaccination-section.expired h4 {
    color: #d32f2f;
    background-color: #fee;
}

.vaccination-section.active h4 {
    color: #2e7d32;
    background-color: #f1f8e9;
}

.health-hero {
    background-image: linear-gradient(to right, #4a8eff, #1e5bb0);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 0;
}

.health-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.health-dashboard {
    padding: 40px 0;
}

.auth-required-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-required-message .message-content {
    max-width: 500px;
    margin: 0 auto;
}

.auth-required-message i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.auth-required-message h2 {
    margin-bottom: 15px;
}

.auth-required-message .auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.health-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.pet-selector {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pet-selector h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.pet-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pet-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.pet-card.active {
    border-left: 4px solid #4CAF50;
    background-color: #f1f8e9;
}

.pet-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.pet-card-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pet-card-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.no-pets-message {
    text-align: center;
    padding: 30px 20px;
}

.no-pets-message i {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.no-pets-message p {
    margin-bottom: 20px;
}

.health-records {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.no-pet-selected {
    text-align: center;
    padding: 60px 20px;
}

.no-pet-selected i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pet-info {
    display: flex;
    align-items: center;
}

.pet-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.pet-details h2 {
    margin: 0;
    font-size: 1.8rem;
}

.pet-details p {
    margin: 5px 0 0;
    color: #6c757d;
}

.health-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #4CAF50;
}

.tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e8f5e9;
    color: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.card-content h3 {
    margin: 0;
    font-size: 1rem;
    color: #6c757d;
}

.card-content .count {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0;
}

.card-content .status,
.card-content .date,
.card-content .weight,
.card-content .trend {
    font-size: 0.9rem;
    margin: 0;
}

.card-content .status.ok {
    color: #4CAF50;
}

.card-content .status.warning {
    color: #FFC107;
}

.card-content .status.alert {
    color: #F44336;
}

.upcoming-events h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.events-list {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.event-item:last-child {
    border-bottom: none;
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e8f5e9;
    color: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.event-details h4 {
    margin: 0;
    font-size: 1rem;
}

.event-details p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.event-date {
    margin-left: auto;
    text-align: right;
}

.event-date .date {
    font-weight: 500;
}

.event-date .days-left {
    font-size: 0.8rem;
    color: #6c757d;
}

.event-date .days-left.soon {
    color: #F44336;
}

.no-events-message,
.no-data-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tab-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.vaccinations-list,
.consultations-list,
.treatments-list {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.record-item {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
}

.record-item:last-child {
    border-bottom: none;
}

.record-date {
    min-width: 100px;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #dee2e6;
}

.record-date .day {
    font-size: 1.5rem;
    font-weight: 700;
}

.record-date .month-year {
    font-size: 0.9rem;
    color: #6c757d;
}

.record-content {
    flex-grow: 1;
    padding-left: 20px;
}

.record-content h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.record-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.record-actions {
    display: flex;
    gap: 10px;
}

.record-actions button {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-actions button:hover {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.record-actions button.delete-vaccine:hover {
    color: #F44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.record-actions button.edit-vaccine:hover {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

/* Styles améliorés pour les vaccinations */
.health-record-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #4CAF50;
    position: relative;
}

.health-record-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.item-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #555;
}

.item-actions .edit-btn:hover {
    background-color: #e3f2fd;
    color: #2196F3;
    transform: scale(1.1);
}

.item-actions .delete-btn {
    color: #F44336;
}

.item-actions .delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
    transform: scale(1.1);
}

.item-actions .red-delete-btn {
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
}

.item-actions .red-delete-btn i {
    color: #F44336;
}

.item-actions .red-delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(244, 67, 54, 0.5);
}

.item-content {
    padding-top: 10px;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-right: 80px; /* Espace pour les boutons */
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #555;
    font-size: 0.95rem;
}

.vaccine-date, .vet-info, .vaccine-notes {
    margin: 0;
    line-height: 1.5;
}

.vaccine-next-date {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    background-color: #f1f8e9;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vaccine-next-date .label {
    font-weight: 600;
    color: #2e7d32;
}

.vaccine-next-date .date {
    font-weight: 500;
}

.vaccine-next-date.overdue {
    background-color: #ffebee;
}

.vaccine-next-date.overdue .label,
.vaccine-next-date.overdue .date {
    color: #d32f2f;
}

.badge.overdue {
    background-color: #d32f2f;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.renewal {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #2e7d32; /* Vert */
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.weight-chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 300px;
}

.weight-history {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.weight-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
}

.weight-item:last-child {
    border-bottom: none;
}

.weight-date {
    min-width: 120px;
}

.weight-value {
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 80px;
}

.weight-change {
    display: flex;
    align-items: center;
    min-width: 80px;
}

.weight-change.increase {
    color: #F44336;
}

.weight-change.decrease {
    color: #4CAF50;
}

.weight-change.stable {
    color: #FFC107;
}

.weight-change i {
    margin-right: 5px;
}

.weight-notes {
    flex-grow: 1;
    color: #6c757d;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #F44336;
}

.modal-body {
    padding: 20px;
}

.record-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.record-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-type-btn:hover {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}

.record-type-btn i {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #F44336;
}

.form-error {
    color: #F44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .health-content {
        grid-template-columns: 1fr;
    }

    .pet-selector {
        margin-bottom: 30px;
    }

    .pet-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .health-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .health-header button {
        margin-top: 15px;
        align-self: flex-end;
    }

    .record-type-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .health-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex-grow: 1;
        text-align: center;
        padding: 10px;
    }

    .pet-list {
        grid-template-columns: 1fr;
    }
}

/* Styles pour les tableaux de données, en particulier le tableau des poids */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Styles spécifiques au tableau des poids */
.weight-table .date-cell {
    min-width: 120px;
    color: #495057;
    font-weight: 500;
}

.weight-table .weight-cell {
    min-width: 80px;
    text-align: left;
}

.weight-table .weight-value {
    font-weight: 600;
    color: #3498db;
}

.weight-table .notes-cell {
    max-width: 300px;
}

.weight-table .note-content {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.weight-table .note-content:hover {
    white-space: normal;
    word-wrap: break-word;
}

.weight-table .no-data {
    color: #adb5bd;
    font-style: italic;
}

.weight-table .actions-cell {
    width: 100px;
    text-align: right;
}

.weight-table .action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.weight-table .icon-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.2s ease;
}

.weight-table .edit-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.weight-table .delete-btn {
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
}

.weight-table .delete-btn i {
    color: #F44336;
}

.weight-table .delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(244, 67, 54, 0.5);
}

/* Style pour le graphique de poids */
.weight-chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 300px;
}

.empty-chart, .error-chart {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.empty-chart p, .error-chart p {
    margin: 5px 0;
}

.empty-chart .small, .error-chart .small {
    font-size: 0.85rem;
    color: #adb5bd;
}

/* Styles pour les consultations */
.consultations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.consultations-list .health-record-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.consultations-list .health-record-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consultations-list .item-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.consultations-list .item-date {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.consultations-list .item-actions {
    display: flex;
    gap: 0.5rem;
}

.consultations-list .edit-btn,
.consultations-list .delete-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.consultations-list .edit-btn:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.consultations-list .delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(244, 67, 54, 0.5);
}

.consultations-list .delete-btn {
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
}

.consultations-list .delete-btn i {
    color: #F44336;
}

.consultations-list .item-content {
    padding: 1.5rem;
}

.consultations-list .item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.consultations-list .item-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.consultations-list .item-details p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.consultations-list .item-details strong {
    color: #343a40;
    margin-right: 0.5rem;
}

/* Styles pour l'affichage de la date dans les examens */
.exam-date-simple {
    margin-left: 10px;
    color: #666;
    font-size: 0.9em;
}

.record-detail-row .exam-type {
    color: #333;
    font-size: 1.1em;
}

.exam-date-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-color: #f0f8f1;
    border-radius: 4px;
    border: 1px solid #4CAF50;
    text-align: center;
    overflow: hidden;
}

.calendar-day {
    display: block;
    font-size: 18px;
    font-weight: bold;
    line-height: 20px;
    color: #4CAF50;
}

.calendar-month {
    display: block;
    font-size: 12px;
    line-height: 16px;
    background-color: #4CAF50;
    color: white;
    width: 100%;
}

.record-detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Styles pour l'onglet Assistant IA */
.premium-feature-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.premium-icon {
    font-size: 2.5rem;
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-message h4 {
    color: #212529;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.premium-message p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-premium {
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-premium:hover {
    background-color: #e0a800;
}

.assistant-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow: hidden;
}

.feature-icon {
    background-color: #e9ecef;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #007bff;
    min-width: 100px;
}

.feature-content {
    padding: 2rem;
    flex: 1;
}

.feature-content h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #212529;
    font-size: 1.2rem;
}

.feature-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-area i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-area p {
    margin-bottom: 1rem;
}

/* Styles pour le chat IA */
.chat-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.chat-message p {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    line-height: 1.5;
}

.system-message {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 90%;
}

.system-message p {
    background-color: #e9ecef;
    color: #6c757d;
    display: inline-block;
    font-style: italic;
    font-size: 0.9rem;
}

.user-message {
    margin-left: auto;
}

.user-message p {
    background-color: #007bff;
    color: #fff;
    border-top-right-radius: 0;
}

.ai-message {
    margin-right: auto;
}

.ai-message p {
    background-color: #fff;
    color: #212529;
    border: 1px solid #dee2e6;
    border-top-left-radius: 0;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    background-color: #fff;
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.chat-input-container button {
    padding: 0.75rem 1.5rem;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .feature-card {
        flex-direction: column;
    }
    
    .feature-icon {
        min-width: auto;
        padding: 1.5rem;
    }
    
    .premium-feature-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
}

/* Styles pour la date avec l'icône de calendrier dans les examens */
.calendar-icon {
    display: inline-flex;
    align-items: center;
    color: #4CAF50;
    margin-right: 15px;
    padding: 3px 8px;
    background-color: #e8f5e9;
    border-radius: 4px;
    font-size: 0.9rem;
}

.calendar-icon i {
    margin-right: 5px;
}

/* Ajustements pour les détails d'examen */
.record-detail-row {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.record-detail-row strong {
    margin-right: 5px;
}

.item-details .consultation-date {
    color: #4a4a4a;
    font-weight: 500;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e0e0e0;
}

/* Style pour les boutons de suppression dans la section examens */
.record-actions .delete-exam-btn {
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.3);
}

.record-actions .delete-exam-btn i {
    color: #F44336;
}

.record-actions .delete-exam-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(244, 67, 54, 0.5);
}

/* Style pour les informations principales d'un examen */
.exam-main-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exam-main-info .exam-type {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 2px;
}

.exam-main-info .exam-date-display {
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exam-main-info .exam-date-display i {
    color: #2196F3;
}
