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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #4CAF50;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.stat-card i {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.chart-header {
    margin-bottom: 25px;
}

.chart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
}

.chart-header i {
    color: #4CAF50;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Table Card */
.table-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.table-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
}

.table-header i {
    color: #4CAF50;
}

.export-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.export-btn i {
    font-size: 0.8rem;
}

.table-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input, .filter-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        padding: 20px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-controls {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 15px 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* DataTables Custom Styles */
.dataTables_wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dataTables_length select,
.dataTables_filter input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    outline: none;
    border-color: #4CAF50;
}

.dataTables_info {
    color: #666;
    font-size: 0.9rem;
    padding: 15px 0;
}

.dataTables_paginate {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px;
    margin-top: 10px;
    background: transparent;
}

.dataTables_paginate .paginate_button {
    padding: 4px 10px !important;
    margin: 0 1px !important;
    font-size: 0.95em !important;
    min-width: 32px;
}

/* Email and Phone Links */
.email-link, .phone-link {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover, .phone-link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Responsive DataTables */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-bottom: 10px;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
    }
    
    .dataTables_paginate .paginate_button {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* Righe più compatte per la tabella */
table.dataTable th,
table.dataTable td {
    padding: 6px 10px !important;
    font-size: 0.92rem;
    line-height: 1.2;
}

/* Forza la paginazione DataTables su una riga orizzontale */
.dataTables_paginate ul.pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 2px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.dataTables_paginate ul.pagination li {
    display: inline-block !important;
    margin: 0 1px !important;
}

/* LinkedIn Link */
.linkedin-link {
    color: #0a66c2;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.linkedin-link:hover {
    color: #004182;
    text-decoration: underline;
} 