/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #007AFF;
    --primary-dark: #0051D5;
    --secondary: #5856D6;
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;
    --text: #1D1D1F;
    --text-light: #86868B;
    --bg: #F5F5F7;
    --bg-card: #FFFFFF;
    --bg-dark: #E5E5EA;
    --bg-hover: #F0F0F0;
    --border: #D2D2D7;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Mode sombre */
[data-theme="dark"] {
    --primary: #0A84FF;
    --primary-dark: #0051D5;
    --secondary: #5E5CE6;
    --success: #30D158;
    --warning: #FF9F0A;
    --error: #FF453A;
    --text: #F5F5F7;
    --text-light: #98989D;
    --bg: #000000;
    --bg-card: #1C1C1E;
    --bg-dark: #2C2C2E;
    --bg-hover: #2C2C2E;
    --border: #38383A;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 0, 0, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.login-container {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: loginSlideIn 0.4s ease;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 16px;
    color: var(--text-light);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.login-form .form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.btn-login {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
}

.btn-login:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

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

.login-error {
    display: none;
    padding: 12px 16px;
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    flex: 1;
}

/* Header */
header {
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}

header h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-align: center;
}

.btn-logout {
    padding: 10px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

.btn-logout:hover {
    background: #FF3B30;
    border-color: #FF3B30;
    color: white;
    transform: translateY(-2px);
}

.subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

/* Search Section */
.search-section {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px var(--shadow);
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
    font-family: inherit;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

#searchBtn {
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

#searchBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

#searchBtn:active {
    transform: translateY(0);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filters select {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.stat-card.stat-chaud {
    border-color: #FF3B30;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, var(--bg-card) 100%);
}

.stat-card.stat-tiède {
    border-color: #FF9500;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, var(--bg-card) 100%);
}

.stat-card.stat-froid {
    border-color: #007AFF;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, var(--bg-card) 100%);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Tabs */
.tabs-section {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

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

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Stats */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
}

.btn-reload {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-reload:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}
    font-size: 15px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.separator {
    color: var(--border);
}

/* Sort Section */
.sort-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px var(--shadow);
}

.sort-section label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.sort-section select {
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sort-section select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Results */
.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

/* Mode liste - prend toute la largeur */
.results.list-mode {
    display: block;
    width: 100%;
    max-width: 100%;
}

.lawyer-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

.lawyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--primary);
}

.lawyer-card:active {
    transform: translateY(-2px);
}

.lawyer-card-appeled {
    border-left: 4px solid #34C759;
    background: linear-gradient(90deg, rgba(52, 199, 89, 0.05) 0%, var(--bg-card) 5%);
}

.appeled-indicator {
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
    color: #34C759;
    cursor: help;
}

.lawyer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.lawyer-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    line-height: 1.3;
}

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

.note-indicator {
    font-size: 16px;
    margin-left: 8px;
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.click-hint {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.lawyer-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
}

.info-row .icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-row a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-success {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Error */
.error {
    text-align: center;
    padding: 60px 20px;
    color: #FF3B30;
    grid-column: 1 / -1;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 44px;
}

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

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

.page-ellipsis {
    padding: 10px 8px;
    color: var(--text-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 14px;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    header {
        padding: 30px 16px 20px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-logout {
        margin-top: 12px;
    }

    .login-container {
        padding: 32px 24px;
    }

    .search-section {
        padding: 20px;
    }

    .search-box {
        flex-direction: column;
    }

    #searchBtn {
        width: 100%;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .sort-section {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-section select {
        width: 100%;
    }

    .stats {
        flex-direction: column;
        gap: 8px;
    }

    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .tabs-section {
        padding: 0 16px;
    }

    .tab-btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .results {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lawyer-card {
        padding: 20px;
    }

    .pagination-controls {
        gap: 6px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
}

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

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

@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: 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

.modal-body {
    padding: 24px;
}

.lawyer-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section {
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.detail-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-header-actions h3 {
    margin: 0;
    flex: 1;
}

.btn-mark-called {
    padding: 8px 16px;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-mark-called:hover {
    background: #2FAE4E;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.called-badge {
    padding: 8px 16px;
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.detail-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: var(--text);
    min-width: 120px;
    flex-shrink: 0;
}

.detail-row span:not(.detail-label),
.detail-row a {
    color: var(--text);
    flex: 1;
}

.detail-row a {
    color: var(--primary);
    text-decoration: none;
}

.detail-row a:hover {
    text-decoration: underline;
}

/* Statut */
.statut-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.statut-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.statut-btn.active.chaud {
    background: #FF3B30;
    border-color: #FF3B30;
    color: white;
}

.statut-btn.active.tiède {
    background: #FF9500;
    border-color: #FF9500;
    color: white;
}

.statut-btn.active.froid {
    background: #007AFF;
    border-color: #007AFF;
    color: white;
}

.current-statut {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.statut-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.btn-remove-statut {
    padding: 8px 16px;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-remove-statut:hover {
    background: #FF3B30;
    border-color: #FF3B30;
    color: white;
    transform: translateY(-1px);
}

/* Historique */
.history-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.history-icon {
    font-size: 20px;
    flex-shrink: 0;
}

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

.history-action {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.history-date {
    font-size: 12px;
    color: var(--text-light);
}

.btn-history {
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

/* Versioning des notes */
.note-versions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.note-version-item {
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.note-version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.note-version-date {
    font-size: 12px;
    color: var(--text-light);
}

.note-version-content {
    padding: 12px;
    background: var(--bg-card);
    border-radius: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 10px;
}

.btn-restore-note {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-restore-note:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Priorité */
.priorite-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.priorite-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.priorite-btn.active.haute {
    background: rgba(255, 59, 48, 0.15);
    border-color: #FF3B30;
    color: #FF3B30;
}

.priorite-btn.active.normale {
    background: rgba(255, 149, 0, 0.15);
    border-color: #FF9500;
    color: #FF9500;
}

.priorite-btn.active.basse {
    background: rgba(52, 199, 89, 0.15);
    border-color: #34C759;
    color: #34C759;
}

.priorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow);
}

/* Tags */
.tags-container {
    margin-top: 10px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 30px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.tags-add {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-select,
.tag-input {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text);
}

.tag-select:focus,
.tag-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Relances */
.relances-info {
    margin-top: 10px;
}

.relances-info p {
    margin: 8px 0;
}

.btn-relance {
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-relance:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Raccourcis clavier - Aide */
.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shortcuts-list h3 {
    margin: 16px 0 8px 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.shortcuts-list h3:first-child {
    margin-top: 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.shortcut-item kbd {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shortcut-item span {
    color: var(--text);
    font-size: 14px;
}

/* Vue liste vs carte */
.btn-view-toggle {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    font-family: inherit;
}

.btn-view-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Vue liste - Table */
.list-view-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    box-sizing: border-box;
}

/* En mode liste, le container s'étend sur toute la largeur */
.container.list-view-active {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.container.list-view-active .results.list-mode {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.container.list-view-active .list-view-container {
    width: 100%;
    max-width: 100%;
}

.container.list-view-active .lawyers-table {
    width: 100%;
    table-layout: auto;
}

.lawyers-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.lawyers-table thead {
    background: var(--primary);
    color: white;
}

.lawyers-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.lawyers-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.lawyers-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.lawyers-table tbody tr:hover {
    background: var(--bg);
}

.lawyers-table tbody tr.lawyer-row-appeled {
    background: rgba(52, 199, 89, 0.05);
}

/* Colonnes de la liste */
.col-name {
    min-width: 200px;
    font-weight: 500;
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-ville,
.col-code-postal {
    min-width: 120px;
}

.col-email {
    min-width: 200px;
}

.col-telephone {
    min-width: 140px;
}

.col-statut,
.col-priorite {
    min-width: 100px;
}

.col-langues {
    min-width: 150px;
}

.col-actions {
    min-width: 100px;
    text-align: center;
}

.tags-mini {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.tag-mini {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.priorite-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.priorite-badge.haute {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
}

.priorite-badge.basse {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.btn-action-small {
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.btn-action-small:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Responsive pour la liste */
@media (max-width: 1200px) {
    .list-view-container {
        overflow-x: scroll;
    }
    
    .lawyers-table {
        min-width: 1200px;
    }
}

/* Campagnes */
.campaign-card {
    cursor: pointer;
    transition: background 0.2s ease;
}

.campaign-card:hover {
    background: #e0e0e0;
}

.campaign-item {
    padding: 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.campaign-zone {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.campaign-zone.haute {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
}

.campaign-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stat-mini {
    font-size: 13px;
}

.campaign-recommendations {
    background: var(--bg);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.campaign-recommendations ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.btn-view-campaign {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-view-campaign:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Notifications / Rappels */
.reminder-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 12px;
}

.reminder-item.reminder-high {
    border-left-color: #FF3B30;
    background: rgba(255, 59, 48, 0.05);
}

.reminder-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.reminder-content {
    flex: 1;
}

.reminder-message {
    font-weight: 500;
    margin-bottom: 8px;
}

.reminder-actions {
    display: flex;
    gap: 8px;
}

.btn-reminder-action {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Statistiques temporelles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-box {
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border);
}

.stat-box-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-box-label {
    font-size: 12px;
    color: var(--text-light);
}

.conversion-stats,
.time-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversion-item,
.time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border-radius: 6px;
}

.conversion-label,
.time-label {
    font-weight: 500;
}

.conversion-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.conversion-count {
    font-size: 12px;
    color: var(--text-light);
}

.time-value {
    font-weight: 600;
    color: var(--primary);
}

/* Doublons */
.duplicate-group {
    padding: 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.duplicate-group h3 {
    margin: 0 0 12px 0;
    color: var(--primary);
}

.duplicate-master {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 12px;
}

.duplicate-items {
    margin-left: 20px;
}

.duplicate-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 4px;
    margin-bottom: 8px;
}

.duplicate-email {
    font-size: 12px;
    color: var(--text-light);
}

.btn-merge {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Colonnes personnalisables */
.btn-columns {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

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

.column-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.column-checkbox:hover {
    background: var(--bg);
}

.columns-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.stats-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stats-section h3 {
    margin: 0 0 16px 0;
    color: var(--primary);
    font-size: 16px;
}

/* Visuels d'avancement dans les filtres */
.filter-progress-visual {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    font-size: 11px;
}

.progress-bar-mini {
    width: 40px;
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 600;
}

/* Ligne d'avancement des filtres sélectionnés */
.filter-progress-line {
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.filter-progress-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    color: var(--primary);
    font-size: 15px;
}

.filter-progress-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-progress-item {
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-progress-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.filter-count {
    font-size: 12px;
    color: var(--text-light);
    font-weight: normal;
}

.filter-progress-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-stat .stat-label {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar .progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-percentage {
    min-width: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.progress-count {
    min-width: 60px;
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
}

.progress-stat-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
}

.progress-stat-mini .stat-label {
    color: var(--text);
}

.progress-stat-mini .stat-value {
    font-weight: 600;
    color: var(--primary);
}

/* Amélioration des selects pour afficher les visuels */
select option {
    padding: 8px;
}

/* Responsive pour la ligne d'avancement */
@media (max-width: 768px) {
    .filter-progress-line {
        padding: 12px;
    }
    
    .progress-bar-container {
        flex-wrap: wrap;
    }
    
    .progress-percentage,
    .progress-count {
        min-width: auto;
    }
}

/* Bouton d'appel */
.btn-call {
    padding: 6px 12px;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-call:hover {
    background: #30B050;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.btn-call-small {
    padding: 4px 8px;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-call-small:hover {
    background: #30B050;
    transform: scale(1.1);
}

/* Vues sauvegardées */
.btn-saved-views {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.btn-saved-views:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.saved-filters-actions {
    margin-bottom: 20px;
}

.btn-save-view {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-save-view:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.saved-filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.saved-filter-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saved-filter-info strong {
    color: var(--text);
    font-size: 14px;
}

.saved-filter-date {
    font-size: 11px;
    color: var(--text-light);
}

.saved-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-apply-view {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

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

.btn-delete-view {
    padding: 6px 10px;
    background: #FF3B30;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-delete-view:hover {
    background: #E0342A;
}

/* Personnalisation des couleurs */
.color-customizer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-item label {
    min-width: 150px;
    font-size: 14px;
    color: var(--text);
}

.color-item input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.color-item input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    background: var(--bg-card);
    color: var(--text);
}

.color-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-reset-colors,
.btn-save-colors {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

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

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

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

/* Boutons de thème */
.btn-theme-toggle,
.btn-theme-customize {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-theme-toggle:hover,
.btn-theme-customize:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow);
}

/* Graphiques statistiques */
.graph-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.graph-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.graphs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.graph-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.graph-section h3 {
    margin: 0 0 16px 0;
    color: var(--primary);
    font-size: 16px;
    text-align: center;
}

.graph-section canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .graphs-container {
        grid-template-columns: 1fr;
    }
    
    .graph-section canvas {
        width: 100%;
    }
}

/* Scoring */
.score-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 12px;
}

.score-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.score-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.score-max {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1;
}

.score-category {
    font-size: 18px;
    font-weight: 600;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 6px;
}

.score-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* Dashboard Analytics */
.dashboard-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
}

.dashboard-body {
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.dashboard-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dashboard-tab:hover {
    color: var(--primary);
}

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

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
}

.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 20px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.kpi-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin: 8px 0;
}

.kpi-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-subvalue {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.dashboard-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.dashboard-chart-container h4 {
    margin: 0 0 16px 0;
    color: var(--text);
    font-size: 16px;
}

.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.metric-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 12px;
}

.metric-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.conversions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.conversion-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.conversion-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.conversion-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin: 8px 0;
}

.conversion-rate {
    font-size: 14px;
    color: var(--text-light);
}

.score-overview {
    text-align: center;
    margin-bottom: 24px;
}

.score-kpi {
    display: inline-block;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 24px 40px;
}

.score-kpi-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.score-kpi-value {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
}

.score-distribution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.score-dist-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.score-dist-card.excellent {
    border-color: #34C759;
}

.score-dist-card.good {
    border-color: #007AFF;
}

.score-dist-card.average {
    border-color: #FF9500;
}

.score-dist-card.poor {
    border-color: #86868B;
}

.score-dist-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.score-dist-card.excellent .score-dist-value {
    color: #34C759;
}

.score-dist-card.good .score-dist-value {
    color: #007AFF;
}

.score-dist-card.average .score-dist-value {
    color: #FF9500;
}

.score-dist-card.poor .score-dist-value {
    color: #86868B;
}

.score-dist-label {
    font-size: 12px;
    color: var(--text-light);
}

.statut-badge.statut-chaud {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
}

.statut-badge.statut-tiède {
    background: rgba(255, 149, 0, 0.15);
    color: #FF9500;
}

.statut-badge.statut-froid {
    background: rgba(0, 122, 255, 0.15);
    color: #007AFF;
}

/* Notes */
.note-textarea {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text);
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.note-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-save,
.btn-clear {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.btn-save:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

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

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

/* Meeting Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-send-meeting {
    flex: 1;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-send-meeting:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

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

.btn-cancel {
    padding: 14px 20px;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .search-section {
        padding: 16px;
        border-radius: 12px;
    }

    #searchInput {
        padding: 12px 16px;
        font-size: 15px;
    }

    #searchBtn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .statut-buttons {
        flex-direction: column;
    }
    
    .statut-btn {
        width: 100%;
    }
    
    .note-actions {
        flex-direction: column;
    }
}

/* Styles pour les alertes intelligentes */

.alerts-card {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.alerts-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.alerts-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF3B30;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--bg-card);
}

.alert-count-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.no-alerts {
    text-align: center;
    padding: 60px 20px;
}

.no-alerts-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-alerts p {
    font-size: 18px;
    color: var(--text);
    margin: 8px 0;
}

.no-alerts-sub {
    font-size: 14px;
    color: var(--text-light);
}

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

.alert-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--border);
    transition: all 0.2s ease;
}

.alert-item:hover {
    box-shadow: 0 2px 8px var(--shadow);
}

.alert-item.alert-high {
    border-left-color: #FF3B30;
    background: rgba(255, 59, 48, 0.05);
}

.alert-item.alert-medium {
    border-left-color: #FF9500;
    background: rgba(255, 149, 0, 0.05);
}

.alert-item.alert-low {
    border-left-color: #FFCC00;
    background: rgba(255, 204, 0, 0.05);
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.alert-rule-name {
    color: var(--text);
    font-size: 15px;
}

.alert-priority-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.alert-priority-badge.priority-high {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

.alert-priority-badge.priority-medium {
    background: rgba(255, 149, 0, 0.2);
    color: #FF9500;
}

.alert-priority-badge.priority-low {
    background: rgba(255, 204, 0, 0.2);
    color: #FFAA00;
}

.alert-message {
    color: var(--text);
    font-size: 14px;
}

.alert-lawyer {
    font-size: 13px;
    color: var(--text-light);
}

.alert-lawyer strong {
    color: var(--text);
}

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

.btn-alert-action {
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-alert-action:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Gestionnaire de règles */
.btn-manage-rules {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-manage-rules:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.rules-actions {
    margin-bottom: 20px;
}

.btn-add-rule {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-add-rule:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.rule-item {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.rule-toggle {
    flex-shrink: 0;
}

.rule-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rule-info strong {
    color: var(--text);
    font-size: 15px;
}

.rule-priority-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.rule-priority-badge.priority-high {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

.rule-priority-badge.priority-medium {
    background: rgba(255, 149, 0, 0.2);
    color: #FF9500;
}

.rule-priority-badge.priority-low {
    background: rgba(255, 204, 0, 0.2);
    color: #FFAA00;
}

.rule-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-rule,
.btn-delete-rule {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

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

.btn-delete-rule {
    background: #FF3B30;
    color: white;
}

.btn-delete-rule:hover {
    background: #E0342A;
}

.rule-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.rule-condition,
.rule-action {
    color: var(--text-light);
}

.rule-condition strong,
.rule-action strong {
    color: var(--text);
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

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

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Styles pour le rapport d'activité */

.report-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.activity-report-body {
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

.report-summary {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.report-summary h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 18px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.report-summary-item {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
}

.report-summary-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-summary-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.report-section {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.report-section h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 18px;
}

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

.report-stat-item {
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    text-align: center;
}

.report-stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.report-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
}

.report-stat-percent {
    font-size: 12px;
    color: var(--text-light);
}

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

.report-activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.activity-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-header strong {
    color: var(--text);
    font-size: 15px;
}

.activity-date {
    font-size: 12px;
    color: var(--text-light);
}

.activity-action {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.activity-details {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

.btn-export-report {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-export-report:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .report-summary-grid,
    .report-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Styles pour le rapport d'activité */

.report-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.activity-report-body {
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

.report-summary {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.report-summary h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 18px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.report-summary-item {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
}

.report-summary-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-summary-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.report-section {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.report-section h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 18px;
}

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

.report-stat-item {
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    text-align: center;
}

.report-stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.report-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
}

.report-stat-percent {
    font-size: 12px;
    color: var(--text-light);
}

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

.report-activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.activity-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-header strong {
    color: var(--text);
    font-size: 15px;
}

.activity-date {
    font-size: 12px;
    color: var(--text-light);
}

.activity-action {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.activity-details {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

.btn-export-report {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-export-report:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .report-summary-grid,
    .report-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Styles pour la recherche avec highlight */

.search-highlight {
    background: #FFEB3B;
    color: var(--text);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

[data-theme="dark"] .search-highlight {
    background: #FFD700;
    color: #000;
}

/* Styles pour les gestes tactiles */

.lawyer-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    touch-action: pan-y;
}

/* Checklist styles */

.checklist-empty {
    padding: 20px;
    text-align: center;
}

.checklist-templates {
    margin-top: 16px;
}

.checklist-templates label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.checklist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-progress {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 12px;
}

.checklist-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

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

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.checklist-item.checked {
    background: rgba(52, 199, 89, 0.1);
    border-color: #34C759;
}

.checklist-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.checklist-item-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checklist-item-text {
    font-size: 14px;
    color: var(--text);
}

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

.checklist-item-remove {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.checklist-item-remove:hover {
    color: #FF3B30;
}

.checklist-add-item {
    display: flex;
    gap: 8px;
}

.checklist-item-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text);
}

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

.btn-add-checklist-item {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.btn-add-checklist-item:hover {
    background: var(--primary-dark);
}

.btn-remove-checklist {
    padding: 6px 12px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-remove-checklist:hover {
    background: #FF3B30;
    border-color: #FF3B30;
    color: white;
}

/* Workflow styles */

.workflow-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.workflow-info {
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text);
}

.workflow-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-add-workflow,
.btn-execute-workflows {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-add-workflow:hover,
.btn-execute-workflows:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.workflow-item {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.workflow-toggle {
    flex-shrink: 0;
}

.workflow-info {
    flex: 1;
}

.workflow-info strong {
    color: var(--text);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.workflow-description {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.workflow-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-workflow,
.btn-delete-workflow {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

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

.btn-delete-workflow {
    background: #FF3B30;
    color: white;
}

.btn-delete-workflow:hover {
    background: #E0342A;
}

.workflow-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.workflow-trigger,
.workflow-actions-list {
    color: var(--text-light);
}

.workflow-trigger strong,
.workflow-actions-list strong {
    color: var(--text);
}

/* Styles pour la recherche avec highlight */

.search-highlight {
    background: #FFEB3B;
    color: var(--text);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

[data-theme="dark"] .search-highlight {
    background: #FFD700;
    color: #000;
}

/* Styles pour les gestes tactiles */

.lawyer-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    touch-action: pan-y;
}

/* Checklist styles */

.checklist-empty {
    padding: 20px;
    text-align: center;
}

.checklist-templates {
    margin-top: 16px;
}

.checklist-templates label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.checklist-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-progress {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 12px;
}

.checklist-progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

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

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.checklist-item.checked {
    background: rgba(52, 199, 89, 0.1);
    border-color: #34C759;
}

.checklist-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.checklist-item-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checklist-item-text {
    font-size: 14px;
    color: var(--text);
}

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

.checklist-item-remove {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.checklist-item-remove:hover {
    color: #FF3B30;
}

.checklist-add-item {
    display: flex;
    gap: 8px;
}

.checklist-item-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text);
}

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

.btn-add-checklist-item {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.btn-add-checklist-item:hover {
    background: var(--primary-dark);
}

.btn-remove-checklist {
    padding: 6px 12px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-remove-checklist:hover {
    background: #FF3B30;
    border-color: #FF3B30;
    color: white;
}

/* Workflow styles */

.workflow-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.workflow-info {
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text);
}

.workflow-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-add-workflow,
.btn-execute-workflows {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-add-workflow:hover,
.btn-execute-workflows:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.workflow-item {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.workflow-toggle {
    flex-shrink: 0;
}

.workflow-info {
    flex: 1;
}

.workflow-info strong {
    color: var(--text);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.workflow-description {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.workflow-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-workflow,
.btn-delete-workflow {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

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

.btn-delete-workflow {
    background: #FF3B30;
    color: white;
}

.btn-delete-workflow:hover {
    background: #E0342A;
}

.workflow-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.workflow-trigger,
.workflow-actions-list {
    color: var(--text-light);
}

.workflow-trigger strong,
.workflow-actions-list strong {
    color: var(--text);
}

