/* 
 * This file contains Tailwind CSS directives
 * stylelint-disable
 * css-lint:disable
 */

:root {
    --brand-green: #0E6E64;
    --brand-green-light: #1A8C80;
    --brand-green-dark: #085048;
    --brand-bg-light: #f0f7f5;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --sidebar-width: 250px;
    --header-height: 64px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark mode variables - SIMPLE 3-COLOR SYSTEM */
.dark {
    --brand-green: #26a69a;
    --brand-green-light: #26a69a;
    --brand-green-dark: #26a69a;
    --brand-bg-light: rgba(38, 166, 154, 0.1);
    --text-primary: #F0F6FC;
    --text-secondary: rgba(240, 246, 252, 0.7);
    --bg-primary: #0D1117;
    --bg-secondary: #151B23;
    --bg-tertiary: #151B23;
    --border-color: rgba(240, 246, 252, 0.1);
    --text-custom-primary: #ffffff;
    --text-custom-secondary: rgba(240, 246, 252, 0.7);
    --bg-custom-primary: #0D1117;
    --bg-custom-secondary: #151B23;
    --border-custom: rgba(240, 246, 252, 0.1);
}

/* Base styles */
html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    z-index: 40;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.app-sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-sidebar.open {
        transform: translateX(0);
    }
    
    .app-main {
        margin-left: 0;
    }
}

/* Common components */
.app-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.app-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.app-btn-primary {
    @apply app-btn bg-brand text-white hover:bg-brand-light shadow-md; /* Added shadow */
}

.app-btn-primary:hover {
    @apply shadow-lg; /* Enhanced hover effect */
}

.app-btn-secondary {
    @apply app-btn bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-600 shadow-sm; /* Added shadow */
}

.app-btn-secondary:hover {
    @apply shadow-md; /* Enhanced hover effect */
}

/* Sidebar navigation */
.sidebar-menu {
    padding: 1rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--brand-bg-light);
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.sidebar-link:hover {
    background-color: var(--brand-bg-light);
    color: var(--brand-green);
}

.sidebar-link.active {
    background-color: var(--brand-green-light);
    color: white;
    font-weight: 500;
}

.sidebar-link.active i {
    color: white;
}

.sidebar-link i, .sidebar-link svg {
    margin-right: 0.75rem;
    color: var(--brand-green);
}

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

.status-open {
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.status-closed {
    background-color: #e6fffa;
    color: #2c7a7b;
}

.status-pending {
    background-color: #fffaf0;
    color: #c05621;
}

.dark .status-open {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

.dark .status-closed {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .status-pending {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

/* Priority indicators */
.priority-high {
    background-color: #fff5f5;
    color: #c53030;
}

.priority-medium {
    background-color: #fffaf0;
    color: #c05621;
}

.priority-low {
    background-color: #f0fff4;
    color: #2f855a;
}

.dark .priority-high {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .priority-medium {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .priority-low {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

/* Form controls */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Dark mode specifics for forms */
.dark .form-input, .dark .form-select, .dark .form-textarea {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark .form-input:focus, .dark .form-select:focus, .dark .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.2);
}

/* Utilities */
.rounded-full {
    border-radius: 9999px;
}

.rounded {
    border-radius: var(--border-radius);
}

/* Animation utils */
.anim-spin {
    animation: spin 1s linear infinite;
}

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

/* Animation de survol pour les cartes */
.hover-card {
    transition: all 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark mode - SIMPLE 3-COLOR SYSTEM */
.dark {
    background-color: #0D1117;
    color: #F0F6FC;
}

.dark body {
    background-color: #0D1117;
    color: #F0F6FC;
}

.dark .bg-white {
    background-color: #151B23;
}

.dark .bg-gray-50,
.dark .bg-gray-100 {
    background-color: #0D1117;
}

.dark .bg-gray-700,
.dark .bg-gray-800,
.dark .bg-gray-900 {
    background-color: #0D1117;
}

.dark .text-gray-900,
.dark .text-gray-800,
.dark .text-gray-700 {
    color: #F0F6FC;
}

.dark .text-gray-600,
.dark .text-gray-500,
.dark .text-gray-400 {
    color: rgba(240, 246, 252, 0.7);
}

.dark .border-gray-200,
.dark .border-gray-300,
.dark .border-gray-600,
.dark .border-gray-700 {
    border-color: rgba(240, 246, 252, 0.1);
}

.dark .shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
}

.dark .hover\:bg-gray-50:hover,
.dark .hover\:bg-gray-100:hover {
    background-color: #151B23;
}

.dark table tbody tr:hover {
    background-color: #0D1117;
}

.dark .text-custom-primary { color: #F0F6FC; }
.dark .text-custom-secondary { color: rgba(240, 246, 252, 0.7); }
.dark .bg-custom-primary { background-color: #0D1117; }
.dark .bg-custom-secondary { background-color: #0D1117; }
.dark .border-custom { border-color: rgba(240, 246, 252, 0.1); }
.dark i[data-lucide] { color: #F0F6FC; }

/* Styles pour la navigation */
.app-header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dark .app-header {
    background-color: #0D1117;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
}

/* Header icon buttons - GitHub style */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.75rem;
    color: #57606a;
    transition: all 0.15s ease;
    cursor: pointer;
}

.header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: #24292f;
}

.dark .header-icon-btn {
    color: #8b949e;
}

.dark .header-icon-btn:hover {
    background-color: rgba(240, 246, 252, 0.08);
    color: #F0F6FC;
}

/* Period buttons for statistics */
.period-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.period-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.period-btn-active {
    background-color: var(--brand-green);
    color: white;
    border-color: var(--brand-green);
}

.period-btn-active:hover {
    background-color: var(--brand-green-light);
}

.dark .period-btn-active {
    background-color: #26a69a;
    color: #0D1117;
    font-weight: 600;
    border-color: rgba(38, 166, 154, 0.3);
    box-shadow: 0 0 0 1px rgba(38, 166, 154, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .period-btn-active:hover {
    background-color: #2ebfb3;
    border-color: rgba(38, 166, 154, 0.5);
    box-shadow: 0 0 0 1px rgba(38, 166, 154, 0.2), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.period-btn-inactive {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.period-btn-inactive:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.dark .period-btn-inactive {
    background-color: rgba(240, 246, 252, 0.05);
    color: rgba(240, 246, 252, 0.7);
    border-color: rgba(240, 246, 252, 0.1);
}

.dark .period-btn-inactive:hover {
    background-color: rgba(240, 246, 252, 0.08);
    color: #F0F6FC;
    border-color: rgba(240, 246, 252, 0.15);
}

/* Responsive period buttons */
@media (max-width: 768px) {
    .period-btn {
        padding: 0.375rem;
        min-width: 2.5rem;
        justify-content: center;
    }

    .period-btn i {
        margin-right: 0 !important;
    }

    .period-btn span {
        display: none;
    }
}

.app-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 1rem;
    transition: all 0.2s;
}

.app-nav-link:hover {
    background-color: #f3f4f6;
}

.dark .app-nav-link:hover {
    background-color: #0D1117;
}

.app-nav-link.active {
    background-color: rgba(0, 77, 64, 0.1);
    color: var(--brand-green);
}

.dark .app-nav-link.active {
    background-color: rgba(38, 166, 154, 0.1);
    color: var(--brand-green);
}

/* Boutons */
.app-btn {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-btn-primary {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--brand-green);
    color: white;
    border: none;
}

.app-btn-primary:hover {
    background-color: var(--brand-green-light);
}

.dark .app-btn-primary {
    background-color: #26a69a;
    color: #0D1117;
    font-weight: 600;
    border: 1px solid rgba(38, 166, 154, 0.3);
    box-shadow: 0 0 0 1px rgba(38, 166, 154, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .app-btn-primary:hover {
    background-color: #2ebfb3;
    border-color: rgba(38, 166, 154, 0.5);
    box-shadow: 0 0 0 1px rgba(38, 166, 154, 0.2), 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.app-btn-secondary {
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.dark .app-btn-secondary {
    background-color: #0D1117;
    border-color: rgba(240, 246, 252, 0.1);
    color: #F0F6FC;
}

.dark .app-btn-secondary:hover {
    background-color: #0D1117;
}

/* Correction du dark mode pour la sélection et inputs */
.dark select, .dark input, .dark textarea {
    background-color: #0D1117;
    border-color: rgba(240, 246, 252, 0.1);
    color: #F0F6FC;
}

.dark select option {
    background-color: #0D1117;
    color: #F0F6FC;
}

/* Responsive */
@media (max-width: 768px) {
    .responsive-grid {
        @apply grid-cols-1;
    }
    
    .responsive-stack {
        @apply flex-col;
    }
}

/* Style pour les transitions de page */
#page-transition-loader {
    transition: opacity 0.3s ease;
}

/* Style pour les badges de priorité */
.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-high {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
}

.priority-medium {
    background-color: rgba(245, 158, 11, 0.1);
    color: rgb(245, 158, 11);
}

.priority-low {
    background-color: rgba(16, 185, 129, 0.1);
    color: rgb(16, 185, 129);
}

/* Amélioration pour les transitions entre pages */
a {
    transition: color 0.2s ease;
}

.app-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Modal styling improvements */
.modal-container {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 32rem;
    z-index: 10;
}

.dark .modal-content {
    background-color: #151B23;
    color: #e6edf3;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.75rem;
}

/* Additional badge styling */
.status-badge.status-nouveau {
    background-color: rgba(37, 99, 235, 0.2);
    color: rgb(37, 99, 235);
}

.status-badge.status-en-cours {
    background-color: rgba(16, 185, 129, 0.2);
    color: rgb(16, 185, 129);
}

.status-badge.status-en-attente {
    background-color: rgba(245, 158, 11, 0.2);
    color: rgb(245, 158, 11);
}

.status-badge.status-ferme {
    background-color: rgba(107, 114, 128, 0.2);
    color: rgb(107, 114, 128);
}

.dark .status-badge.status-nouveau {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

.dark .status-badge.status-en-cours {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

.dark .status-badge.status-en-attente {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .status-badge.status-ferme {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

/* Nouveaux statuts manquants */
.status-badge.status-accept, .status-badge.status-accep, .status-badge.status-accepted {
    background-color: rgba(5, 150, 105, 0.15);
    color: rgb(5, 150, 105);
}

.status-badge.status-hold, .status-badge.status-pause, .status-badge.status-paused {
    background-color: rgba(217, 119, 6, 0.15);
    color: rgb(217, 119, 6);
}

.status-badge.status-reopen {
    background-color: rgba(37, 99, 235, 0.15);
    color: rgb(37, 99, 235);
}

.status-badge.status-reject, .status-badge.status-cancel, .status-badge.status-close {
    background-color: rgba(185, 28, 28, 0.15);
    color: rgb(185, 28, 28);
}

.status-badge.status-processing, .status-badge.status-progress, .status-badge.status-work-in-progress, .status-badge.status-wip {
    background-color: rgba(124, 58, 237, 0.15);
    color: rgb(124, 58, 237);
}

/* Nouveaux statuts manquants - Dark mode */
.dark .status-badge.status-accept, .dark .status-badge.status-accep, .dark .status-badge.status-accepted {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

.dark .status-badge.status-hold, .dark .status-badge.status-pause, .dark .status-badge.status-paused {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .status-badge.status-reopen {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

.dark .status-badge.status-reject, .dark .status-badge.status-cancel, .dark .status-badge.status-close {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .status-badge.status-processing, .dark .status-badge.status-progress, .dark .status-badge.status-work-in-progress, .dark .status-badge.status-wip {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

/* Section content padding */
.section-content {
    padding: 1rem;
}

.section-content:empty {
    padding: 0;
}

/* Improved navigation styling */
.action-btn {
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

/* Improved modal styles */
.modal-container {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 32rem;
    z-index: 10;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.dark .modal-content {
    background-color: #0D1117;
    color: #F0F6FC;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .modal-header {
    border-bottom: 1px solid rgba(240, 246, 252, 0.1);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .modal-footer {
    border-top: 1px solid rgba(240, 246, 252, 0.1);
}

.modal-close {
    background: transparent;
    border: none;
    color: #4a5568;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.75rem;
    line-height: 1;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .modal-close {
    color: rgba(240, 246, 252, 0.7);
}

.dark .modal-close:hover {
    background-color: rgba(240, 246, 252, 0.05);
}

/* Fixed status badge styling */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Fixed priority badges */
.status-badge.priority-high {
    background-color: rgba(239, 68, 68, 0.15);
    color: rgb(220, 38, 38);
}

.status-badge.priority-medium {
    background-color: rgba(249, 115, 22, 0.15);
    color: rgb(234, 88, 12);
}

.status-badge.priority-low {
    background-color: rgba(16, 185, 129, 0.15);
    color: rgb(5, 150, 105);
}

.dark .status-badge.priority-high {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .status-badge.priority-medium {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.dark .status-badge.priority-low {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

/* Section spacing fixes */
.section-content {
    padding: 1.25rem;
}

/* Section content fixes */
.section-content p:last-child {
    margin-bottom: 0;
}

/* Timeline fixes */
.timeline-container {
    position: relative;
    padding-left: 2.5rem;
    margin: 1.25rem 0;
}

.timeline-line {
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--brand-green);
    opacity: 0.2;
}

.timeline-dot {
    position: absolute;
    left: -0.5rem;
    margin-top: 0.5rem;
}

/* Form input improvements */
input, select, textarea {
    padding: 0.625rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    background-color: white;
}

.dark input, .dark select, .dark textarea {
    background-color: #0D1117;
    border-color: rgba(240, 246, 252, 0.1);
    color: #F0F6FC;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(14, 110, 100, 0.2);
}

/* Styles pour les tickets */
.ticket-card {
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.dark .ticket-card {
    background-color: #0D1117;
    border-color: rgba(240, 246, 252, 0.1);
}

.ticket-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ticket-status {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.ticket-status-open {
    background-color: #d1fae5;
    color: #065f46;
}

.dark .ticket-status-open {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

.ticket-status-closed {
    background-color: #f3f4f6;
    color: #1f2937;
}

.dark .ticket-status-closed {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.ticket-priority-high {
    background-color: #fee2e2;
    color: #991b1b;
}

.dark .ticket-priority-high {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.ticket-priority-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.dark .ticket-priority-medium {
    background-color: rgba(240, 246, 252, 0.15);
    color: rgba(240, 246, 252, 0.7);
}

.ticket-priority-low {
    background-color: #dbeafe;
    color: #1e40af;
}

.dark .ticket-priority-low {
    background-color: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}

/* Ticket text styles */
.text-ticket-id { font-size: 1.25rem; font-weight: bold; color: var(--text-primary); }
.text-ticket-status { font-size: 0.875rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 0.75rem; }
.text-ticket-priority { font-size: 0.875rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 0.75rem; }
.text-ticket-title { font-size: 1.125rem; font-weight: 500; color: var(--text-primary); }
.text-ticket-meta { font-size: 0.875rem; color: var(--text-secondary); }

/* Status and priority badge colors */
.status-accepted { background-color: #d1fae5; color: #065f46; }
.priority-medium { background-color: #fef3c7; color: #92400e; }

/* Ensure Lucide icons are visible */
i[data-lucide] { color: var(--text-primary); }
.dark-mode i[data-lucide] { color: #F0F6FC; }

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

.modal-content {
    background-color: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

/* Button styles - Alias for consistency */
.btn,
.btn-primary {
    background-color: var(--brand-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover,
.btn-primary:hover {
    background-color: var(--brand-green-light);
}
