/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #8B5CF6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #F5F7FA;
    --bg-secondary: #EEF0F4;
    --card-bg: #FDFDFD;
    --border: #E5E7EB;
    --priority-high: #FEE2E2;
    --priority-medium: #FEF3C7;
    --priority-low: #E0E7FF;
    --accent: #06B6D4;
}

/* Mode sombre */
body.dark-mode {
    --text: #F9FAFB;
    --text-light: #D1D5DB;
    --bg: #111827;
    --bg-secondary: #1a2332;
    --card-bg: #1F2937;
    --border: #374151;
    --priority-high: #7F1D1D;
    --priority-medium: #78350F;
    --priority-low: #3730A3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

[x-cloak] {
    display: none !important;
}

/* Page de connexion */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-card h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-card > p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.login-card input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-card button {
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-card button:hover:not(:disabled) {
    background: var(--primary-dark);
}

.login-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: -0.5rem;
}

/* Header */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header h1 {
    font-size: 1.75rem;
    color: var(--primary);
}

/* Menu container (hamburger + nav wrapper) */
.menu-container {
    display: flex;
    align-items: center;
    position: static;
}

/* Hamburger button - hidden on desktop */
.hamburger-btn {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
}

.hamburger-btn i {
    width: 22px;
    height: 22px;
}

.hamburger-btn:hover {
    background: var(--bg);
}

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

/* Navigation */
.header-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-nav button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.header-nav button i {
    width: 18px;
    height: 18px;
}

.header-nav button:hover {
    background: var(--bg);
}

.header-nav button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.logout-btn {
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

.logout-btn:hover {
    background: var(--danger) !important;
    color: white !important;
}

/* Mobile menu */
@media (max-width: 900px) {
    .hamburger-btn {
        display: flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 99;
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav button {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .global-search {
        display: none;
    }
}

/* Main content */
.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Dashboard */
.dashboard {
    display: grid;
    gap: 1.5rem;
}

.welcome-section h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-card.active {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.stat-card.alert {
    background: var(--priority-high);
}

.stat-card.alert.active {
    border: 2px solid var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card.alert .stat-value {
    color: var(--danger);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Quick add */
.quick-add {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-add h3 {
    margin-bottom: 1rem;
}

.quick-add form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
}

.quick-add input,
.quick-add select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text);
}

.quick-add button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-add button:hover {
    background: var(--primary-dark);
}

/* Priority tasks & Events */
.priority-tasks,
.upcoming-events {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.priority-tasks h3,
.upcoming-events h3 {
    margin-bottom: 1rem;
}

.task-list,
.event-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 0.5rem;
    border-left: 3px solid var(--border);
}

.task-item.priority-high {
    border-left-color: var(--danger);
    background: var(--priority-high);
}

.task-item.priority-medium {
    border-left-color: var(--warning);
    background: var(--priority-medium);
}

.task-item.priority-low {
    border-left-color: var(--primary);
    background: var(--priority-low);
}

.task-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.task-info {
    flex: 1;
}

.task-title {
    font-weight: 500;
}

.task-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.task-project {
    padding: 0.125rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 0.25rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 0.5rem;
}

.event-time {
    font-size: 0.875rem;
    color: var(--text-light);
    min-width: 120px;
}

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

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

/* Tasks view */
.tasks-view {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--text);
}

.task-list.detailed {
    display: grid;
    gap: 1rem;
}

.task-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg);
}

.task-card.priority-high {
    border-left: 4px solid var(--danger);
}

.task-card.priority-medium {
    border-left: 4px solid var(--warning);
}

.task-card.priority-low {
    border-left: 4px solid var(--primary);
}

.task-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.task-card-header h3 {
    flex: 1;
    font-size: 1rem;
}

.task-card-header input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.delete-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
}

.delete-btn:hover {
    background: var(--danger);
    color: white;
}

.task-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.task-card-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge:not(.priority-high):not(.priority-medium):not(.priority-low) {
    background: var(--primary);
    color: white;
}

.badge.priority-high {
    background: var(--danger);
    color: white;
}

.badge.priority-medium {
    background: var(--warning);
    color: white;
}

.badge.priority-low {
    background: var(--primary);
    color: white;
}

/* Kanban view */
.kanban-view {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kanban-view h2 {
    margin-bottom: 1.5rem;
}

/* (kanban-board principal défini plus bas) */

.kanban-column h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
}

.kanban-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--border);
}

.kanban-card.priority-high {
    border-left-color: var(--danger);
}

.kanban-card.priority-medium {
    border-left-color: var(--warning);
}

.kanban-card.priority-low {
    border-left-color: var(--primary);
}

.kanban-card.done {
    opacity: 0.7;
}

.kanban-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.kanban-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

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

.kanban-card-actions button {
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.kanban-card-actions button:hover {
    background: var(--primary-dark);
}

.kanban-card-actions button:last-child {
    background: var(--danger);
    margin-left: auto;
}

/* Chat view */
.chat-view {
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 12rem);
    display: flex;
    flex-direction: column;
}

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

.chat-header button {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.chat-header button:hover:not(:disabled) {
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.assistant {
    align-self: flex-start;
    background: var(--bg);
    border-bottom-left-radius: 0.25rem;
}

.message-content {
    line-height: 1.6;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.chat-message.user .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
}

.typing-indicator span {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

.chat-input textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.chat-input button:hover:not(:disabled) {
    background: var(--primary-dark);
}

.chat-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Widget assistant flottant */
.ai-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ai-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.ai-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    }
}

/* Section ajout événement */
.add-event-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.add-event-section h3 {
    margin-bottom: 1rem;
}

.add-event-section form {
    display: grid;
    gap: 0.75rem;
}

.add-event-section input,
.add-event-section textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.add-event-section input:focus,
.add-event-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.add-event-section button {
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-event-section button:hover {
    background: #0891B2;
    transform: translateY(-2px);
}

/* Drag & Drop styles */
.kanban-card {
    cursor: grab;
    transition: all 0.2s;
}

.kanban-card:active {
    cursor: grabbing;
    transform: scale(1.05);
    opacity: 0.8;
}

.kanban-column.drag-over {
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed var(--primary);
    border-radius: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-add form {
        grid-template-columns: 1fr;
    }

    .chat-view {
        height: calc(100vh - 16rem);
    }

    .chat-message {
        max-width: 90%;
    }

    .ai-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .ai-widget-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Chatbox dashboard - Message de Holo */
.dashboard-chatbox {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    padding: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    margin-bottom: 1.5rem;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
}

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

.chatbox-header {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chatbox-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.chatbox-avatar {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.close-chatbox {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close-chatbox:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbox-content {
    padding: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    min-height: 100px;
}

.chatbox-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
}

.btn-chat {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-dismiss {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mon Compte page */
.account-view {
    max-width: 800px;
    margin: 0 auto;
}

.account-view h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text);
}

.account-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.account-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text);
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.form-group small a {
    color: var(--primary);
    text-decoration: none;
}

.form-group small a:hover {
    text-decoration: underline;
}

.account-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.account-form button:hover:not(:disabled) {
    background: var(--primary-dark);
}

.account-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    color: var(--success);
    font-size: 0.875rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid var(--success);
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid var(--danger);
}

.info-text {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.theme-settings {
    display: grid;
    gap: 1rem;
}

.icloud-status {
    margin-bottom: 1rem;
}

.icloud-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.toggle-setting {
    padding: 0.75rem 0;
}

.toggle-setting label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-setting input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.toggle-setting span {
    font-size: 1rem;
    color: var(--text);
}

/* Responsive pour Mon Compte */
@media (max-width: 768px) {
    .account-view {
        padding: 0;
    }

    .icloud-actions {
        flex-direction: column;
    }

    .icloud-actions button {
        width: 100%;
    }
}

/* Section header avec bouton + */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.btn-clear-filter {
    padding: 0.5rem 1rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-clear-filter:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-clear-filter i {
    width: 16px;
    height: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-pagination {
    padding: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.btn-pagination:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-pagination i {
    width: 18px;
    height: 18px;
}

.btn-add-event {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-add-event:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-content form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: var(--bg);
    border-color: var(--text-light);
}

.btn-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Chatbox modale de l'assistant */
.chat-modal {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 420px;
    max-width: calc(100vw - 2rem);
    height: 600px;
    max-height: calc(100vh - 10rem);
    z-index: 999;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-modal-container {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

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

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-suggestions {
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-suggestions i {
    width: 18px;
    height: 18px;
}

.btn-suggestions:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.btn-suggestions:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset-context {
    padding: 0.4rem;
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset-context i {
    width: 16px;
    height: 16px;
}

.btn-reset-context:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.chat-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ai-widget-button.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.1);
}

/* Responsive chatbox */
@media (max-width: 768px) {
    .chat-modal {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 5rem;
        height: calc(100vh - 8rem);
    }
}

/* Vue Rappels */
.reminders-view {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reminders-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reminders-view .view-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.reminders-view .view-header h2 i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.btn-add-reminder {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-reminder i {
    width: 18px;
    height: 18px;
}

.btn-add-reminder:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.advanced-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.search-input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.advanced-filters select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
}

.advanced-filters select:focus {
    outline: none;
    border-color: var(--primary);
}

.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reminder-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--bg);
    border-left: 4px solid var(--border);
    transition: all 0.2s;
}

.reminder-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.reminder-card.priority-high {
    border-left-color: var(--danger);
}

.reminder-card.priority-medium {
    border-left-color: var(--warning);
}

.reminder-card.priority-low {
    border-left-color: var(--primary);
}

.reminder-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.reminder-header input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.reminder-header h3 {
    flex: 1;
    font-size: 1.1rem;
    margin: 0;
    color: var(--text);
}

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

.timer-btn,
.delete-icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.timer-btn i,
.delete-icon-btn i {
    width: 18px;
    height: 18px;
    color: var(--text);
}

.timer-btn:hover {
    background: var(--success);
    border-color: var(--success);
}

.timer-btn:hover i {
    color: white;
}

.timer-btn.active {
    background: var(--success);
    border-color: var(--success);
}

.timer-btn.active i {
    color: white;
}

.delete-icon-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.delete-icon-btn:hover i {
    color: white;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

.timer-display i {
    width: 16px;
    height: 16px;
}

.reminder-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.reminder-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reminder-footer .badge {
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.reminder-footer .badge i {
    width: 14px;
    height: 14px;
}

.badge-high {
    background: var(--danger);
    color: white;
}

.badge-medium {
    background: var(--warning);
    color: white;
}

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

.badge-date {
    background: var(--accent);
    color: white;
}

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

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state i {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

/* Responsive Rappels */
@media (max-width: 768px) {
    .advanced-filters {
        grid-template-columns: 1fr;
    }

    .reminder-header {
        flex-wrap: wrap;
    }

    .reminder-header h3 {
        width: 100%;
        order: 1;
    }

    .reminder-actions {
        order: 3;
    }
}

/* Vue Rappels simplifiée (style iOS) */
.reminders-view .reminders-list {
    background: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
}

.reminder-search {
    position: relative;
    margin-bottom: 1rem;
}

.reminder-search i {
    display: none;
}

.reminder-search .search-input {
    padding-left: 0.75rem;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

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

.reminder-item:hover {
    background: var(--bg);
}

.reminder-item.completed {
    opacity: 0.5;
}

.reminder-item.completed h3 {
    text-decoration: line-through;
}

.reminder-item input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.reminder-content {
    flex: 1;
}

.reminder-content h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    color: var(--text);
}

.reminder-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.reminder-time,
.reminder-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.reminder-time i,
.reminder-note i {
    width: 14px;
    height: 14px;
}

.reminder-delete {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.reminder-delete i {
    width: 18px;
    height: 18px;
}

.reminder-delete:hover {
    background: var(--danger);
    color: white;
}

/* Kanban amélioré avec timer */
.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kanban-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.kanban-header h2 i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.btn-add-task {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-task i {
    width: 18px;
    height: 18px;
}

.btn-add-task:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.kanban-board {
    display: flex;
    gap: 1rem;
    min-height: 600px;
}

.kanban-column {
    background: var(--bg);
    border-radius: 0.75rem;
    padding: 1rem;
    min-height: 200px;
    flex: 1 1 0;
}

/* Mobile: scroll horizontal */
@media (max-width: 900px) {
    .kanban-board {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .kanban-column {
        min-width: 260px;
        flex: 0 0 260px;
    }
}

.column-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.column-done {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.column-header i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.column-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    color: var(--text);
}

.task-count {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s;
    border-left: 3px solid var(--border);
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.priority-high {
    border-left-color: var(--danger);
}

.kanban-card.priority-medium {
    border-left-color: var(--warning);
}

.kanban-card.priority-low {
    border-left-color: var(--primary);
}

.card-done {
    opacity: 0.7;
}

.card-header-kanban {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-header-kanban h4 {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.dot-high {
    background: var(--danger);
}

.dot-medium {
    background: var(--warning);
}

.dot-low {
    background: var(--primary);
}

.kanban-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.kanban-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 0.5rem;
}

.timer-btn-small {
    background: var(--success);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 0.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.timer-btn-small i {
    width: 14px;
    height: 14px;
    color: white;
}

.timer-btn-small:hover {
    background: #059669;
}

.timer-btn-small.active {
    background: var(--danger);
    animation: pulse 2s infinite;
}

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

.timer-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
    font-family: 'Courier New', monospace;
}

.card-footer-kanban {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.due-badge,
.time-spent {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    background: var(--bg);
    border-radius: 0.35rem;
}

.due-badge i,
.time-spent i {
    width: 12px;
    height: 12px;
}

/* Responsive Kanban */
@media (max-width: 1024px) {
    .kanban-column {
        min-width: 250px;
    }
}

/* Rendez-vous en cartes */
.upcoming-events .section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoming-events .section-header h3 i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 4px solid var(--primary);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

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

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    min-width: 60px;
}

.badge-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
}

.event-time-slot {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.event-time-slot i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.event-card-body {
    margin-bottom: 0.75rem;
}

.event-card-body h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-weight: 600;
}

.event-card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.event-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.event-card-footer i {
    width: 14px;
    height: 14px;
    color: var(--danger);
}

.empty-state-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    color: var(--text-light);
}

.empty-state-card i {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Responsive events */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.kanban-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.project-filter {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 200px;
}

.project-filter:focus {
    outline: none;
    border-color: var(--primary);
}

.kanban-board-extended {
    min-height: 500px;
}

/* Custom scrollbar for kanban board */
.kanban-board::-webkit-scrollbar {
    height: 6px;
}

.kanban-board::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 3px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.column-backlog {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.05), rgba(156, 163, 175, 0.05));
}

.column-backlog .column-header i {
    color: var(--text-light);
}

.column-review {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 191, 36, 0.05));
}

.column-review .column-header i {
    color: var(--warning);
}

.project-badge {
    padding: 0.25rem 0.5rem;
    background: var(--secondary);
    color: white;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Kanban controls */
@media (max-width: 600px) {
    .kanban-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .project-filter {
        min-width: auto;
        flex: 1;
    }
}

/* Vue Projets */
.projects-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-view .view-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.projects-view .view-header h2 i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.btn-add-project {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-project i {
    width: 18px;
    height: 18px;
}

.btn-add-project:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

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

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.project-delete {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    opacity: 0;
}

.project-card:hover .project-delete {
    opacity: 1;
}

.project-delete i {
    width: 18px;
    height: 18px;
}

.project-delete:hover {
    background: var(--danger);
    color: white;
}

.project-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
}

.stat-item i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.project-footer {
    display: flex;
    justify-content: flex-end;
}

.view-kanban {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.view-kanban i {
    width: 16px;
    height: 16px;
}

.empty-state-projects {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem;
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    color: var(--text-light);
}

.empty-state-projects i {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}

/* Responsive Projets */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* Boutons d'action sur les cartes Kanban */
.card-header-kanban {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.kanban-card:hover .card-actions {
    opacity: 1;
}

.btn-edit-card,
.btn-delete-card {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-card {
    color: var(--primary);
}

.btn-edit-card:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-delete-card {
    color: #ef4444;
}

.btn-delete-card:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-edit-card i,
.btn-delete-card i {
    width: 14px;
    height: 14px;
}

/* Recherche globale */
.global-search {
    position: relative;
    max-width: 400px;
    flex: 1;
    margin: 0 2rem;
}

.global-search > i {
    display: none;
}

.global-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    color: var(--text);
    transition: all 0.2s;
}

.global-search-input::placeholder {
    color: var(--text-light);
}

.global-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg);
    color: var(--text);
}

.global-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.search-result-item:hover {
    background: var(--bg-secondary);
}

.result-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.result-type i {
    width: 14px;
    height: 14px;
}

.result-type.type-task {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.result-type.type-project {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.result-type.type-reminder {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text);
}

.result-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Boutons d'export */
.export-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-export {
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-export:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-export i {
    width: 16px;
    height: 16px;
}

/* Mode Focus */
.focus-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.focus-header {
    text-align: center;
    margin-bottom: 2rem;
}

.focus-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.focus-project-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.focus-project-selector label {
    font-weight: 500;
    color: var(--text-primary);
}

.focus-project-selector .project-filter {
    min-width: 200px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
}

.focus-project-selector .project-filter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.focus-card {
    background: transparent;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
}

.focus-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.focus-task-header h3 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    color: var(--text);
}

.focus-task-header p {
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.focus-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.focus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.focus-badge i {
    width: 16px;
    height: 16px;
}

.focus-badge.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.focus-badge.priority-medium {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.focus-badge.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.btn-exit-focus {
    padding: 0.5rem;
    background: var(--bg);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-exit-focus:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-exit-focus i {
    width: 20px;
    height: 20px;
}

/* Pomodoro Timer - Design Ultra Compact */
.pomodoro-compact {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.pomodoro-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.timer-display-compact {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.timer-display-compact.active {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.timer-display-compact.urgent {
    color: #ef4444;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    animation: urgentPulse 1s ease-in-out infinite;
}

.timer-separator {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Barres de son animées */
.sound-bars-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(0.25rem, 1vw, 0.75rem);
    height: clamp(80px, 15vh, 150px);
    margin-bottom: 0;
    padding: 0 2rem;
    overflow: hidden;
}

.sound-bar {
    flex: 1;
    max-width: 20px;
    background: var(--border);
    border-radius: 100px;
    transition: all 0.3s ease;
    min-height: 20%;
}

.sound-bar.active {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    animation: soundWave 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.sound-bar.urgent {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    animation: soundWaveUrgent 0.8s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

@keyframes soundWave {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

@keyframes soundWaveUrgent {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(1.8);
        opacity: 0.9;
    }
}

/* Contrôles du timer */
.timer-controls-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.pomodoro-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border-radius: 0.75rem;
    border: 2px solid var(--border);
}

.pomodoro-settings label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.pomodoro-duration-input {
    width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--card-bg);
    color: var(--text);
    transition: all 0.2s;
}

.pomodoro-duration-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.duration-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.timer-circle-container {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto 2rem auto;
    padding: 40px;
    overflow: visible;
}

.timer-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.timer-circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
    stroke-linecap: round;
}

.timer-circle-progress.active {
    stroke: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary)) drop-shadow(0 0 40px var(--primary));
}

.timer-circle-progress.urgent {
    stroke: #ef4444;
    filter: drop-shadow(0 0 25px #ef4444) drop-shadow(0 0 50px #ef4444) drop-shadow(0 0 75px rgba(239, 68, 68, 0.5));
    animation: urgentPulse 1s ease-in-out infinite;
}

.timer-pulse {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    opacity: 0.4;
    animation: pulse 2s ease-in-out infinite;
    filter: blur(4px);
}

.timer-pulse.urgent {
    stroke: #ef4444;
    animation: urgentPulse 1s ease-in-out infinite;
    filter: blur(6px);
}

@keyframes pulse {
    0%, 100% {
        r: 85;
        opacity: 0.3;
    }
    50% {
        r: 92;
        opacity: 0.1;
    }
}

@keyframes urgentPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.timer-display.active {
    color: var(--primary);
}

.timer-display.urgent {
    color: #ef4444;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) rotate(2deg); }
}

.timer-separator {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-pomodoro-start,
.btn-pomodoro-pause,
.btn-pomodoro-reset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-pomodoro-start:hover {
    background: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-pomodoro-pause {
    background: #fb923c;
    color: white;
}

.btn-pomodoro-pause:hover {
    background: #f97316;
}

.btn-pomodoro-reset {
    background: var(--bg);
    color: var(--text);
}

.btn-pomodoro-reset:hover {
    background: var(--border);
}

.btn-pomodoro-start i,
.btn-pomodoro-pause i,
.btn-pomodoro-reset i {
    width: 18px;
    height: 18px;
}

.pomodoro-info {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Focus Actions */
.focus-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-focus-complete,
.btn-focus-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.btn-focus-complete {
    color: #22c55e;
    border-color: #22c55e;
}

.btn-focus-complete:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-focus-skip {
    color: var(--text-light);
}

.btn-focus-skip:hover {
    background: var(--bg);
    border-color: var(--text);
    color: var(--text);
}

.btn-focus-complete i,
.btn-focus-skip i {
    width: 20px;
    height: 20px;
}

/* Focus Selector */
.focus-selector {
    max-width: 600px;
    margin: 0 auto;
}

.focus-empty {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.focus-empty i {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.focus-empty h3 {
    margin: 1rem 0 0.5rem 0;
    color: var(--text);
}

.focus-empty p {
    color: var(--text-light);
}

.focus-suggestions h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.focus-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.focus-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.focus-task-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.focus-task-item .task-info {
    flex: 1;
}

.focus-task-item h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
}

.task-meta-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.focus-task-item i {
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .focus-view {
        padding: 1rem;
    }

    .timer-display {
        font-size: 3.5rem;
    }

    .focus-actions {
        grid-template-columns: 1fr;
    }

    .btn-focus-complete span,
    .btn-focus-skip span {
        font-size: 0.9rem;
    }
}
.timer-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-pomodoro-start,
.btn-pomodoro-pause,
.btn-pomodoro-reset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-pomodoro-start {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-pomodoro-start:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.btn-pomodoro-pause {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: white;
    box-shadow: 0 4px 16px rgba(251, 146, 60, 0.3);
}

.btn-pomodoro-pause:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.5);
}

.btn-pomodoro-reset {
    background: var(--card-bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-pomodoro-reset:hover {
    background: var(--bg);
    border-color: var(--text);
    transform: translateY(-2px);
}

.btn-pomodoro-start i,
.btn-pomodoro-pause i,
.btn-pomodoro-reset i {
    width: 20px;
    height: 20px;
}

.pomodoro-message {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0;
}

.pomodoro-message p {
    margin: 0;
}

/* Responsive Pomodoro */
@media (max-width: 768px) {
    .pomodoro-timer-new {
        padding: 0.5rem;
        height: calc(100vh - 80px);
        gap: 1rem;
    }

    .sound-bars-container {
        padding: 0 1rem;
        height: clamp(60px, 12vh, 100px);
    }

    .timer-display-new {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 0;
    }

    .pomodoro-settings {
        padding: 0.75rem 1.5rem;
    }

    .timer-buttons {
        flex-direction: row;
        width: 100%;
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .btn-pomodoro-start,
    .btn-pomodoro-pause,
    .btn-pomodoro-reset {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .btn-pomodoro-start span,
    .btn-pomodoro-pause span,
    .btn-pomodoro-reset span {
        display: none;
    }

    .pomodoro-message {
        font-size: 0.8rem;
    }
}

.timer-controls-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.duration-input-compact {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
}

.duration-input-compact:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-pomo {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 0.75rem;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pomo i {
    width: 20px;
    height: 20px;
}

.btn-pomo:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

.sound-bars-compact {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(0.2rem, 0.8vw, 0.5rem);
    height: 80px;
    padding: 0 1rem;
}

.sound-bar-compact {
    flex: 1;
    max-width: 12px;
    background: var(--border);
    border-radius: 100px;
    transition: all 0.3s ease;
    min-height: 30%;
}

.sound-bar-compact.active {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    animation: soundWave 1s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.sound-bar-compact.urgent {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    animation: soundWaveUrgent 0.7s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Responsive Pomodoro Compact */
@media (max-width: 768px) {
    .pomodoro-compact {
        padding: 1rem;
    }

    .timer-row {
        flex-direction: column;
        gap: 1rem;
    }

    .timer-display-compact {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .timer-controls-compact {
        width: 100%;
        justify-content: center;
    }

    .sound-bars-compact {
        height: 60px;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .timer-display-compact {
        font-size: 2.5rem;
    }

    .btn-pomo {
        width: 44px;
        height: 44px;
    }

    .sound-bars-compact {
        height: 50px;
    }
}

/* ==========================================
   KANBAN COMPACT CARDS (Style Trello)
   ========================================== */

.kanban-card-compact {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    border: 1px solid var(--border);
}

.kanban-card-compact:active {
    cursor: grabbing;
}

.kanban-card-compact:hover {
    background: var(--bg-secondary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.kanban-card-compact.priority-high {
    border-left-color: var(--danger);
}

.kanban-card-compact.priority-medium {
    border-left-color: var(--warning);
}

.kanban-card-compact.priority-low {
    border-left-color: var(--success);
}

.kanban-card-compact h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.kanban-card-compact .card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.project-badge-sm,
.due-badge-sm,
.checklist-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-light);
}

.project-badge-sm {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.due-badge-sm {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.checklist-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.checklist-badge i,
.due-badge-sm i {
    width: 12px;
    height: 12px;
}

.done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
}

.done-icon i {
    width: 12px;
    height: 12px;
}

.kanban-card-compact.card-done {
    opacity: 0.6;
    background: var(--bg-secondary);
}

.kanban-card-compact.card-done h4 {
    text-decoration: line-through;
    color: var(--text-light);
}

/* Bouton d'ajout de carte par colonne */
.btn-add-card {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-add-card:hover {
    background: var(--bg-secondary);
    border-color: var(--text-light);
    color: var(--text);
}

.btn-add-card i {
    width: 16px;
    height: 16px;
}

/* ==========================================
   MODAL DÉTAILS TÂCHE
   ========================================== */

.modal-content-large {
    background: var(--bg);
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.task-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

.task-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.task-detail-title i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.task-detail-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.edit-title-input {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
}

.edit-title-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.task-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-focus-task,
.btn-edit-task,
.btn-archive-task,
.btn-delete-task {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-focus-task:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-edit-task:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-archive-task:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-delete-task:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.btn-focus-task i,
.btn-edit-task i,
.btn-archive-task i,
.btn-delete-task i {
    width: 18px;
    height: 18px;
}

.btn-edit-task.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.task-detail-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.task-detail-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-detail-section h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-detail-section h4 i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.task-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-item label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item label i {
    width: 14px;
    height: 14px;
}

.meta-item span {
    font-size: 0.95rem;
    color: var(--text);
}

.priority-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

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

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

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

.status-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.task-description {
    margin: 0;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.task-description.text-muted {
    font-style: italic;
    opacity: 0.6;
}

.text-muted {
    color: var(--text-light);
    font-style: italic;
    opacity: 0.6;
}

.edit-description-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}

.edit-description-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.meta-select,
.meta-input {
    padding: 6px 10px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    width: 100%;
}

.meta-select:focus,
.meta-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Timer dans la modal */
.task-timer-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.timer-display-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.btn-timer {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-timer:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-timer.active {
    background: #f59e0b;
}

.btn-timer i {
    width: 18px;
    height: 18px;
}

/* Checklist */
.checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-add-checklist {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-add-checklist:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-add-checklist i {
    width: 14px;
    height: 14px;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: all 0.2s;
}

.checklist-item:hover {
    background: var(--bg-hover);
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checklist-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
}

.checklist-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg);
}

.btn-remove-checklist {
    padding: 4px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-remove-checklist:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-remove-checklist i {
    width: 16px;
    height: 16px;
}

.empty-checklist {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 1.5rem;
    margin: 0;
}

/* Modal ajout rapide carte */
.modal-content-small {
    background: var(--bg);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
}

/* Kanban action buttons (icon-only) */
.btn-kanban-action {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: all 0.2s;
    position: relative;
}

.btn-kanban-action:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-kanban-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-kanban-action i {
    width: 18px;
    height: 18px;
}

.btn-kanban-action.loading {
    pointer-events: none;
}

.spinner-icon {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

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

.action-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Dragging state */
.kanban-card-compact.dragging {
    opacity: 0.4;
    transform: rotate(2deg);
}

/* Pomodoro button on kanban cards */
.card-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.card-actions-row .card-tags {
    margin-top: 0;
}

.btn-card-pomo {
    padding: 5px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-card-pomo i {
    width: 16px;
    height: 16px;
}

.btn-card-pomo:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.archived-content {
    padding: 1.5rem;
}

.archived-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archived-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.archived-task-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.archived-task-info {
    flex: 1;
}

.archived-task-info h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text);
}

.archived-task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-light);
    border-radius: 4px;
    font-size: 0.8rem;
}

.meta-badge i {
    width: 12px;
    height: 12px;
}

.meta-badge.priority {
    background: transparent;
}

.archived-task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-unarchive {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-unarchive:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.btn-unarchive i {
    width: 16px;
    height: 16px;
}

.btn-delete-archived {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-delete-archived:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.btn-delete-archived i {
    width: 16px;
    height: 16px;
}

.empty-archived {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-light);
}

.empty-archived i {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-archived span {
    display: block;
    font-size: 0.95rem;
}

/* ========================================
   Animations style Apple
   ======================================== */

/* Animation de suppression (fade + scale + slide) */
@keyframes deleteItem {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95) translateY(-5px);
    }
    100% {
        opacity: 0;
        transform: scale(0.85) translateY(-10px);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

.deleting {
    animation: deleteItem 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    pointer-events: none;
}

/* Toast notification style Apple */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-notification.hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* Animation pour les éléments qui se repositionnent */
.event-card, .task-card, .project-card {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ========================================
   TAGS SYSTEM
   ======================================== */

.task-tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    background: var(--bg);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-badge:hover {
    background: var(--border);
    transform: translateY(-1px);
}

.tag-badge.active {
    border-color: var(--tag-color);
    background: var(--tag-color);
    color: white;
}

.tag-badge i {
    width: 14px;
    height: 14px;
}

.empty-tags {
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Tags mini sur les cartes Kanban */
.card-tags {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.task-tag-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.task-tag-mini i {
    width: 12px;
    height: 12px;
}

/* ========================================
   FOCUS MODE - CHECKLIST
   ======================================== */

.focus-checklist {
    background: var(--bg);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1.25rem;
}

.focus-checklist h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.focus-checklist h4 i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.focus-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.focus-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
}

.focus-checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.focus-checklist-item span {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text);
}

.focus-checklist-item span.completed {
    text-decoration: line-through;
    color: var(--text-light);
}

.kanban-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kanban-project-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.kanban-project-time i {
    width: 16px;
    height: 16px;
}

.kanban-project-time strong {
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Modal gestion des labels de modules */
.module-labels-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-label-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.module-code strong {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.9rem;
}

.module-label-input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.module-label-input:focus {
    outline: none;
    border-color: var(--primary);
}
