* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333333;
}

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

h1 {
    text-align: center;
    color: #C41E3A;
    margin-bottom: 30px;
    font-weight: bold;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-section h2 {
    margin-bottom: 20px;
    color: #C41E3A;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.form-row input, .form-row textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-row label {
    min-width: 150px;
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-group label {
    min-width: auto;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

button {
    background-color: #C41E3A;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #A01729;
}

.nav-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #C41E3A;
    border-bottom-color: #C41E3A;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

.prospects-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    font-size: 14px;
}

.filter-group input, .filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#resetFilters {
    background-color: #95a5a6;
    padding: 8px 16px;
    font-size: 14px;
}

.table-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #C41E3A;
    font-weight: bold;
    color: white;
}

tr:hover {
    background-color: #f8f9fa;
}

.table-types {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.table-types label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
}

.table-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.import-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upload-area {
    margin: 20px 0;
}

.upload-zone {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.upload-zone:hover {
    border-color: #2980b9;
    background-color: #e3f2fd;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-hint {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.preview-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
}

.mapping-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e8f5e8;
    border-radius: 6px;
}

.mapping-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.mapping-info li {
    margin: 5px 0;
    color: #2c5530;
}

.preview-table {
    max-height: 400px;
    overflow: auto;
    margin-bottom: 20px;
}

.preview-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.preview-table th, .preview-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.preview-table th {
    background-color: #f0f0f0;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.import-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-import {
    background-color: #C41E3A;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-import:hover {
    background-color: #A01729;
}

.btn-cancel {
    background-color: #95a5a6;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
}

.bulk-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.bulk-actions button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn-duplicate {
    background-color: #1E3A8A;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-duplicate:hover {
    background-color: #1E40AF;
}

.duplicate-row {
    background-color: #ffebee !important;
    border-left: 4px solid #C41E3A;
}

.duplicate-row:hover {
    background-color: #ffcdd2 !important;
}

.import-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.import-method {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fafafa;
}

.import-method h3 {
    margin-top: 0;
    color: #2c3e50;
}

.bni-import-steps ol {
    margin: 15px 0;
    padding-left: 20px;
}

.bni-import-steps li {
    margin: 8px 0;
}

.script-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.script-container textarea {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    resize: vertical;
}

.btn-copy {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-copy:hover {
    background-color: #2980b9;
}

.bni-auto-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bni-auto-form .form-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.bni-auto-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.status-message {
    min-height: 20px;
    font-weight: bold;
}

.bookmarklet-instructions {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.bookmarklet-instructions ol {
    margin: 10px 0;
    padding-left: 20px;
}

.bookmarklet-instructions li {
    margin: 8px 0;
    line-height: 1.4;
}

.bookmarklet-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin: 5px;
}

.bookmarklet-btn:hover {
    background-color: #c0392b;
    color: white;
}

.relance-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.relance-section h2 {
    color: #C41E3A;
    margin-bottom: 10px;
}

.relance-section p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.date-input {
    width: 120px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.comment-input {
    width: 150px;
    height: 40px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.relance-mois-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.relance-mois-section h2 {
    color: #C41E3A;
    margin-bottom: 10px;
}

.relance-mois-section p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.btn-export {
    background-color: #1E3A8A;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
}

.btn-export:hover {
    background-color: #1E40AF;
}

.relance-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-firebase {
    background-color: #FF6B35;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
}

.btn-firebase:hover {
    background-color: #E55A2B;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.prospect-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
}

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

.prospect-name {
    font-weight: bold;
    font-size: 18px;
    color: #C41E3A;
}

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

.info-item {
    font-size: 14px;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.prospect-types {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.type-bni {
    background-color: #C41E3A;
    color: white;
}

.type-agence {
    background-color: #1E3A8A;
    color: white;
}

.prospect-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-edit {
    background-color: #f39c12;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row label {
        min-width: auto;
    }
    
    .prospect-info {
        grid-template-columns: 1fr;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .table-section {
        padding: 10px;
    }
    
    th, td {
        padding: 8px 4px;
        font-size: 12px;
    }
}