/* Variables CSS - Thème Noir et Blanc Pur */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --danger-color: #ff0000;
    --warning-color: #ff9900;
    --info-color: #0066cc;
    --success-color: #00cc00;
    
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #999999;
    
    --border-color: #2a2a2a;
    --border-dark: #333333;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #000000, #1a1a1a);
    --gradient-secondary: linear-gradient(135deg, #ffffff, #e0e0e0);
    --gradient-accent: linear-gradient(135deg, #333333, #666666);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar - Design Minimaliste Noir et Blanc */
.sidebar {
    width: 320px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-right: 2px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 2px solid var(--border-color);
    background: var(--gradient-primary);
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.sidebar-header h1 i {
    font-size: 20px;
    opacity: 0.9;
}

.sidebar-nav {
    padding: 24px 0;
}

.nav-btn {
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-btn:hover {
    background: var(--bg-tertiary);
    border-left-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateX(2px);
}

.nav-btn.active {
    background: var(--bg-tertiary);
    border-left-color: var(--text-primary);
    color: var(--text-primary);
    font-weight: 600;
}

.nav-btn i {
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Main Area */
.main-area {
    flex: 1;
    margin-left: 320px;
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Header - Design Noir et Blanc */
.header {
    background: var(--gradient-primary);
    border-bottom: 2px solid var(--border-color);
    padding: 24px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

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

.header-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-stats {
    display: flex;
    gap: 32px;
}

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

.stat-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    justify-content: center;
    border: 1px solid var(--border-color);
}

.nav-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 1rem;
}

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

.nav-btn.active {
    color: var(--bg-primary);
    background: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

/* Main Content - Design Minimaliste */
.main-content {
    padding: 32px;
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sections */
.section {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #000000;
    opacity: 0;
    transition: var(--transition);
}

.section:hover::before {
    opacity: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000000;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: #000000;
    border-radius: 2px;
}

.section.active {
    display: block;
}

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

/* Buttons - Design Moderne */
.btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition);
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

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

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

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border-color: var(--success-color);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    border-color: var(--danger-color);
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid #000000;
}

.filter-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #000000;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    flex: 1;
    text-align: center;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000, #666666);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.filter-btn:hover {
    color: #000000;
    background: #f0f0f0;
    transform: translateY(-1px);
}

.filter-btn.active {
    color: #000000;
    background: #f0f0f0;
    box-shadow: var(--shadow-sm);
}

.filter-btn.active::after {
    width: 80%;
}

/* Projects Grid - Design Noir et Blanc */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #000000;
    transform: scaleX(0);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #000000;
    background: #f8f8f8;
}

.project-card:hover::before {
    transform: scaleX(1);
}

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

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-client {
    color: #000000;
    font-size: 0.95rem;
    font-weight: 500;
}

.project-status {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #000000;
    background: transparent;
    color: #000000;
}

.status-en-cours {
    background: #000000;
    color: #ffffff;
}

.status-termines {
    background: #ffffff;
    color: #000000;
}

.status-maintenance {
    background: #ffffff;
    color: #000000;
}

.project-description {
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #000000;
}

/* Modal Design Minimaliste Noir et Blanc */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 2px solid #000000;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #000000;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: -0.3px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.close-btn:hover {
    background: #f0f0f0;
    color: #000000;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.project-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.project-date {
    color: #000000;
    font-size: 13px;
    margin-top: 16px;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-actions button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px;
    font-weight: 500;
}

.project-actions button:hover {
    background: var(--text-primary);
    color: var(--bg-card);
    border-color: var(--text-primary);
}

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

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

/* Forms Design Minimaliste */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
    background: #ffffff;
    color: #000000;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #000000;
}

/* Empty State Design */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #000000;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #000000;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000000;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .main-area {
        margin-left: 280px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-area {
        margin-left: 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .project-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .edit-btn, .delete-btn {
        flex: 1;
        padding: 0.5rem;
        text-align: center;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .import-contacts-btn, .btn-success {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-bar {
        margin-bottom: 1rem;
    }
    
    .search-bar input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .project-card {
        padding: 0.75rem;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-status {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Contact Cards Design */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #000000;
    transform: scaleX(0);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #000000;
    background: #f8f8f8;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #000000;
    transition: var(--transition);
}

.contact-card:hover img {
    border-color: #000000;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.contact-company {
    color: #000000;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-position {
    color: #000000;
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-info {
    text-align: left;
    margin-top: 16px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    width: 16px;
    color: #000000;
}

.contact-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #000000;
    justify-content: center;
}

.contact-actions button {
    padding: 8px 16px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px;
    font-weight: 500;
}

.contact-actions button:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Phone Contacts Import Styles */
.import-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    display: none;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    border: 2px solid var(--text-primary);
}

.import-content {
    text-align: center;
}

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

.import-content p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.import-result {
    text-align: center;
}

.import-result h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.import-result p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.import-result strong {
    color: var(--text-primary);
}

/* Contact Import Button */
.import-contacts-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-contacts-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
}

/* Project Contact Links */
.project-contacts {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.project-contacts h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.linked-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.linked-contact-info {
    flex: 1;
}

.linked-contact-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.linked-contact-details {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.unlink-contact {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.unlink-contact:hover {
    background: var(--bg-secondary);
    color: #ef4444;
}

/* Voice Assistant Styles */
.voice-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.voice-btn.listening {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse 2s infinite;
}

.voice-btn.alternative {
    background: var(--text-secondary);
}

.voice-btn.alternative:hover {
    background: var(--text-primary);
}

/* Alternative Voice Input */
.voice-alternative-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    display: none;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--text-primary);
}

.alternative-content h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 18px;
}

.alternative-content p {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.alternative-content textarea {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.alternative-content textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.alternative-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.voice-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    display: none;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    border: 2px solid var(--text-primary);
}

.voice-indicator-content {
    text-align: center;
}

.voice-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text-primary);
    animation: voicePulse 1.5s infinite;
    margin: 0 auto;
}

@keyframes voicePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.voice-indicator p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.processing-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    display: none;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    border: 2px solid var(--text-primary);
}

.processing-content {
    text-align: center;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-indicator p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.voice-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    max-width: 400px;
    border-left: 4px solid var(--text-primary);
    animation: slideInRight 0.3s ease-out;
}

.voice-notification.success {
    border-left-color: #22c55e;
}

.voice-notification.error {
    border-left-color: #ef4444;
}

.voice-notification.info {
    border-left-color: #3b82f6;
}

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

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-content i {
    margin-top: 2px;
    color: var(--text-primary);
}

.notification-content.success i {
    color: #22c55e;
}

.notification-content.error i {
    color: #ef4444;
}

.notification-content.info i {
    color: #3b82f6;
}

.notification-content p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: var(--transition-fast);
}

.notification-close:hover {
    color: var(--text-primary);
}

.voice-summary {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-top: 12px;
}

.voice-summary h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.voice-summary ul {
    margin: 0;
    padding-left: 20px;
}

.voice-summary li {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.voice-summary strong {
    color: var(--text-primary);
}

/* Mobile Voice Button */
@media (max-width: 768px) {
    .voice-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .voice-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .voice-indicator,
    .processing-indicator {
        padding: 30px 20px;
        width: 90%;
        max-width: 350px;
    }
}
