/* Variables */
:root {
    --color-primary: #4F46E5;
    --color-primary-dark: #4338CA;
    --color-secondary: #10B981;
    --color-secondary-dark: #059669;
    --color-background: #F3F4F6;
    --color-surface: #FFFFFF;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
}

/* Authentification - Système de Slider */
.auth-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.auth-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    width: 300%; /* 3 étapes : Email, Password, Reset */
}

.auth-pane {
    width: 33.333%;
    flex-shrink: 0;
    padding: 1.5rem 0.5rem;
    transition: opacity 0.4s ease;
}

.auth-pane.hidden-pane {
    opacity: 0;
    pointer-events: none;
}

/* Étape active */
.auth-slider[data-step="1"] { transform: translateX(0); }
.auth-slider[data-step="2"] { transform: translateX(-33.333%); }
.auth-slider[data-step="3"] { transform: translateX(-66.666%); }

/* Amélioration des inputs */
.auth-input-group {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-input-group:focus-within {
    transform: translateY(-2px);
}

.auth-input {
    width: 100%;
    padding-left: 3rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #f9fafb;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    color: #111827;
    font-weight: 800;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.auth-input:focus {
    background-color: #ffffff;
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.auth-input-group:focus-within .auth-icon {
    color: var(--color-primary);
}

/* Boutons de l'auth */
.btn-auth-primary {
    background-color: var(--color-primary);
    color: white !important;
}

.btn-auth-emerald {
    background-color: #059669; /* emerald-600 */
    color: white !important;
}

.btn-auth-indigo {
    background-color: #4f46e5; /* indigo-600 */
    color: white !important;
}

/* Bouton Back */
.btn-back-auth {
    padding: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-back-auth:hover {
    color: var(--color-primary);
}

/* Styles de base */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Styles des boutons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
}

/* Styles des cartes */
.card {
    background-color: var(--color-surface);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Styles des formulaires */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Styles des notifications */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Styles des modales */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.modal-content {
    background-color: var(--color-surface);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    margin: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles des transitions */
.fade-enter {
    opacity: 0;
    transform: translateY(20px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Styles des icônes */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.badge-success {
    background-color: #DEF7EC;
    color: #03543F;
}

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

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

/* Styles des listes */
.list-item {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    transition: background-color 0.3s ease;
}

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

.list-item:hover {
    background-color: #F3F4F6;
}

/* Styles des tableaux */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.table th {
    background-color: #F9FAFB;
    font-weight: 600;
}

.table tr:hover {
    background-color: #F3F4F6;
}

/* Styles des liens */
.link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Styles des tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background-color: #1F2937;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
}

/* Styles des spinners */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #E5E7EB;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Styles des dividers */
.divider {
    height: 1px;
    background-color: #E5E7EB;
    margin: 1rem 0;
}

.divider-vertical {
    width: 1px;
    background-color: #E5E7EB;
    margin: 0 1rem;
}

/* Styles des avatars */
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
}

.avatar-lg {
    width: 3rem;
    height: 3rem;
}

/* Styles des progress bars */
.progress {
    width: 100%;
    height: 0.5rem;
    background-color: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

/* Styles des skeletons */
.skeleton {
    background-color: #E5E7EB;
    border-radius: 0.25rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Styles des accordions */
.accordion {
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background-color: #F9FAFB;
    cursor: pointer;
    user-select: none;
}

.accordion-content {
    padding: 1rem;
    border-top: 1px solid #E5E7EB;
}

/* Styles des tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
}

.tab {
    padding: 0.75rem 1rem;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}

/* Styles des breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--color-text-light);
}

/* Styles des chips */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #F3F4F6;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.chip-close {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Styles des switches */
.switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #E5E7EB;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    height: 1.25rem;
    width: 1.25rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.switch input:checked + .switch-slider {
    background-color: var(--color-primary);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(1.5rem);
}

/* Classes utilitaires Tailwind personnalisées */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-primary-dark {
    background-color: var(--color-primary-dark) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

.hover\:bg-primary-dark:hover {
    background-color: var(--color-primary-dark) !important;
}

/* Custom row hover gradient for employees table */
.hover-gradient-row {
    transition: background 0.3s ease;
}
.hover-gradient-row:hover {
    background: linear-gradient(to right, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.05));
}
.hover-gradient-row:hover .group-hover\:bg-gradient-to-br {
    background: linear-gradient(to bottom right, #4F46E5, #8B5CF6);
    color: white;
}
.hover-gradient-row:hover .group-hover\:text-indigo-700 {
    color: #4338CA;
}
.hover-gradient-row:hover .group-hover\:text-purple-600 {
    color: #9333EA;
}

/* Styles des formulaires */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
textarea {
    border: 1px solid #d1d5db;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Styles des boutons */
button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Styles des notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: transition-all 0.3s ease;
}

/* Styles des modales */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 28rem;
    transform: transition-all 0.3s ease;
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.slide-out {
    animation: slideOut 0.3s ease-out forwards;
} 