body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* Thème sombre */
body.dark-mode {
    background: #1a202c;
    color: #e2e8f0;
}

/* Fond principal en mode sombre */
body.dark-mode .min-h-screen {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
}

body.dark-mode .bg-white {
    background: #2d3748 !important;
}

body.dark-mode .bg-gray-100 {
    background: #374151 !important;
}

body.dark-mode .bg-gray-50,
body.dark-mode .hover\:bg-gray-50:hover {
    background: #1f2937 !important;
}

body.dark-mode .bg-gray-200 {
    background: #4a5568 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .hover\:bg-gray-300:hover {
    background: #5a6678 !important;
}

/* Bloc de progression jaune -> version sombre */
body.dark-mode .bg-gradient-to-r.from-yellow-100 {
    background: linear-gradient(to right, #374151, #4a5568) !important;
}

body.dark-mode .bg-yellow-50 {
    background: #2d3748 !important;
}

body.dark-mode .text-gray-700,
body.dark-mode .text-gray-800,
body.dark-mode .text-gray-900 {
    color: #e2e8f0 !important;
}

body.dark-mode .text-gray-600,
body.dark-mode .text-gray-500 {
    color: #cbd5e0 !important;
}

body.dark-mode .border-gray-200,
body.dark-mode .border-gray-300 {
    border-color: #4a5568 !important;
}

body.dark-mode input,
body.dark-mode select {
    background: #374151 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

body.dark-mode input::placeholder {
    color: #9ca3af !important;
}

body.dark-mode .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .modal-overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-mode .modal-content {
    background: #2d3748 !important;
}

/* Lignes des Pokémon possédés en mode sombre */
body.dark-mode .bg-green-50 {
    background: #1e4a3a !important;
}

body.dark-mode tr.bg-green-50 {
    background: #1e4a3a !important;
    border-color: #10b981 !important;
}

/* Bouton thème */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .theme-toggle {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Icônes personnalisées */
.icon-btn {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon-edit {
    color: #2563eb;
}

body.dark-mode .icon-edit {
    color: #60a5fa;
}

.icon-edit:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.icon-delete {
    color: #dc2626;
}

body.dark-mode .icon-delete {
    color: #f87171;
}

.icon-delete:hover {
    background-color: rgba(220, 38, 38, 0.1);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Bouton add */
.btn-add {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #10b981;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100;
}

.btn-add:hover {
    background-color: #059669;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.2s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-add {
        bottom: 16px;
        right: 16px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
}