/* Variables */
:root {
    --primary-color: #FF6B9D;
    --secondary-color: #4ECDC4;
    --success-color: #95E1D3;
    --warning-color: #FFD93D;
    --danger-color: #F38181;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
}

/* Général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Boutons */
.btn-primary {
    @apply bg-pink-500 text-white px-6 py-2 rounded-lg hover:bg-pink-600 transition duration-200 font-medium;
}

.btn-secondary {
    @apply bg-gray-200 text-gray-800 px-6 py-2 rounded-lg hover:bg-gray-300 transition duration-200 font-medium;
}

.btn-success {
    @apply bg-green-500 text-white px-6 py-2 rounded-lg hover:bg-green-600 transition duration-200 font-medium;
}

.btn-danger {
    @apply bg-red-500 text-white px-6 py-2 rounded-lg hover:bg-red-600 transition duration-200 font-medium;
}

/* Cards */
.card {
    @apply bg-white rounded-lg shadow-md overflow-hidden;
}

.card-header {
    @apply px-6 py-4 bg-gray-50 border-b border-gray-200 font-semibold;
}

.card-body {
    @apply px-6 py-4;
}

/* Navigation */
.nav-link {
    @apply text-gray-700 hover:text-pink-500 px-3 py-2 rounded-md text-sm font-medium transition duration-200;
}

.nav-link.active {
    @apply text-pink-500 bg-pink-50;
}

.bottom-nav-item {
    @apply flex flex-col items-center justify-center text-gray-600 hover:text-pink-500 transition duration-200;
}

.bottom-nav-item.active {
    @apply text-pink-500;
}

/* Alerts */
.alert {
    @apply px-4 py-3 rounded-lg mb-4;
}

.alert-success {
    @apply bg-green-50 text-green-800 border border-green-200;
}

.alert-error {
    @apply bg-red-50 text-red-800 border border-red-200;
}

.alert-warning {
    @apply bg-yellow-50 text-yellow-800 border border-yellow-200;
}

.alert-info {
    @apply bg-blue-50 text-blue-800 border border-blue-200;
}

/* Forms */
.form-group {
    @apply mb-4;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-input {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-pink-500 focus:border-transparent outline-none transition duration-200;
}

.form-input:disabled {
    @apply bg-gray-100 cursor-not-allowed;
}

.form-error {
    @apply text-red-500 text-sm mt-1;
}

.form-help {
    @apply text-gray-500 text-sm mt-1;
}

.form-checkbox {
    @apply rounded text-pink-500 focus:ring-pink-500;
}

/* Badges */
.badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-xs font-medium;
}

.badge-primary {
    @apply bg-pink-100 text-pink-800;
}

.badge-success {
    @apply bg-green-100 text-green-800;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-danger {
    @apply bg-red-100 text-red-800;
}

.badge-info {
    @apply bg-blue-100 text-blue-800;
}

/* Dropdown */
.dropdown-item {
    @apply block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 transition duration-200;
}

/* Loading */
.spinner {
    @apply inline-block w-6 h-6 border-4 border-pink-500 border-t-transparent rounded-full animate-spin;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.3s ease-out;
}

/* Mode hors ligne */
body.offline::before {
    content: "Vous êtes hors ligne";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #F38181;
    color: white;
    text-align: center;
    padding: 0.5rem;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}

/* PWA Install Banner */
.pwa-install-banner {
    @apply fixed bottom-20 left-4 right-4 bg-white rounded-lg shadow-xl p-4 z-40 border border-pink-200;
}
