/**
 * ZeroSei Graph - Dashboard Styles
 *
 * File CSS per stili custom del plugin ZeroSei Graph
 * Integrato con Bootstrap 5 del tema Bootscore
 *
 * @package ZeroSei_Graph
 * @version 1.2.0
 * @since 1.2.0
 */

/* Placeholder per stili custom futuri */
.zerosei-filter-row{
  padding: 30px;
  background-color: #f5f5f5;
  border-top: 1px solid #c2c0c1;
  border-bottom: 1px solid #c2c0c1;

}
.zerosei-header-table{
  padding: 20px 30px;
  background-color: #f5f5f5;
  border-top: 1px solid #c2c0c1;
  border-bottom: 1px solid #c2c0c1;

}

.btn-reset{
  width: 38px;
  height: 38px;
  border-radius: 200px;
  background-color: white;
  border: 1px solid #c3c3c3;
}



/**
 * ZeroSei Graph Dashboard Styles - Compiled from SCSS
 *
 * NOTA: Questo è un CSS base. Per la versione completa, compila il file SCSS:
 * sass assets/scss/dashboard.scss assets/css/dashboard.css --style compressed
 *
 * @package ZeroSei_Graph
 * @version 1.0.0
 */

 :root {
  --zerosei-primary-color: #005ec1;
}

/* Container principale */
.zerosei-container {
  max-width: 1600px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Header */
.zerosei-header {
  background: var(--zerosei-primary-color, #005ec1);
  color: white;
  padding: 30px;
  text-align: center;
}

.zerosei-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 300;
}

.zerosei-header h1 i {
  margin-right: 10px;
}

.zerosei-header p {
  font-size: 1.1em;
  opacity: 0.9;
  margin: 0;
}

/* Tabs */
.zerosei-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.zerosei-tab {
  flex: 1;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #495057;
}

.zerosei-tab:hover {
  background: #e9ecef;
}

.zerosei-tab.active {
  background: white;
  border-bottom-color: var(--zerosei-primary-color, #005ec1);
  color: var(--zerosei-primary-color, #005ec1);
}

.zerosei-tab i {
  margin-right: 8px;
}

/* Tab Content */
.zerosei-tab-content {
  display: none;
}

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

/* Filters */
.zerosei-filters {
  padding: 30px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

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

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

.filter-group label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  font-size: 14px;
}

.filter-group label i {
  margin-right: 5px;
}

.filter-group select,
.filter-group input {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--zerosei-primary-color, #005ec1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 94, 193, 0.1);
}

/* Buttons */
.zerosei-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.zerosei-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.zerosei-btn#zerosei-btn-reset-filtri {
  padding: 2px 2px;
  border: none;
  border-radius: 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--zerosei-primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zerosei-btn:hover {
  transform: translateY(-2px);
}

.zerosei-btn i {
  margin-right: 8px;
}

.zerosei-btn.btn-primary {
  background: var(--zerosei-primary-color, #005ec1);
  color: white;
}


.zerosei-btn.btn-secondary {
  background: transparent;
  color: white;
}

.zerosei-btn.btn-secondary:hover {
  background: transparent;
}

.zerosei-btn.btn-success {
  background: #28a745;
  color: white;
}

.zerosei-btn.btn-success:hover {
  background: #218838;
}

.zerosei-btn.btn-info {
  background: white;
  color: var(--zerosei-primary-color, #005ec1);
  border: 1px solid var(--zerosei-primary-color, #005ec1);
}

.zerosei-btn.btn-info:hover {
  background: var(--zerosei-primary-color, #005ec1);
  color: white;
}

/* Content */
.zerosei-content {
  padding: 30px;
}

/* Loading */
.zerosei-loading {
  display: none;
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-size: 1.1em;
}

.zerosei-loading.show {
  display: block;
}

.zerosei-loading i {
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

/* Error */
.zerosei-error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

/* Stats Grid */
.zerosei-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.zerosei-stat-card {
  background: white;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  border-radius: 8px;
}


.zerosei-stat-card .stat-value {
  font-size: 56px;
  line-height: 57px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 5px;
}

.zerosei-stat-card .stat-label {
  font-size: 24px;
  line-height: 24px;
  color: #1e3c72;
  font-weight: 500;
}

/* Charts */
.zerosei-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.zerosei-charts-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.zerosei-charts-grid.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.zerosei-chart-container {
  background: white;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.zerosei-chart-container.full-width {
  grid-column: 1 / -1;
}

.zerosei-chart-container .chart-title {
  font-size: 24px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  color: #1e3c72;
  margin-bottom: 20px;
}

.zerosei-chart-container .chart-wrapper {
  position: relative;
  height: 400px;
}

/* Tables */
.zerosei-table-container {
  margin-bottom: 30px;
  overflow-x: auto;
  border-radius: 4px;
}

.zerosei-table-container h3 {
  font-size: 56px;
  line-height: 57px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 5px;
}

.zerosei-table-container h3 i {
  margin-right: 10px;
  color: var(--zerosei-primary-color, #005ec1);
}

.zerosei-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.zerosei-data-table th,
.zerosei-data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.zerosei-data-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.zerosei-data-table tr:hover {
  background: #f8f9fa;
}

.zerosei-data-table code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

/* Badges */
.zerosei-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.zerosei-badge.badge-success {
  background: #d4edda;
  color: #155724;
}

.zerosei-badge.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.zerosei-badge.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* Sottotipologie */
.zerosei-sottotipologie-container.hidden {
  display: none;
}

.zerosei-sottotipologie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.zerosei-sottotipologia-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
}

.zerosei-sottotipologia-card .sottotipologia-code {
  font-weight: 600;
  color: #1e3c72;
  margin-bottom: 5px;
}

.zerosei-sottotipologia-card .sottotipologia-value {
  font-size: 1.2em;
  color: #495057;
}

.zerosei-sottotipologia-card small {
  color: #6c757d;
  font-size: 0.85em;
}

/* Animations */
@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .zerosei-charts-grid.grid-3 {
      grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .zerosei-header h1 {
      font-size: 2em;
  }

  .zerosei-tabs {
      flex-direction: column;
  }

  .filter-row {
      grid-template-columns: 1fr;
  }

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

  .zerosei-charts-grid,
  .zerosei-charts-grid.grid-2,
  .zerosei-charts-grid.grid-3 {
      grid-template-columns: 1fr;
  }

  .zerosei-stats-grid {
      grid-template-columns: 1fr;
  }

  .zerosei-content {
      padding: 20px;
  }
}

