/* Importazione font simile a fkGroteskNeue */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2A9D8F;
  --primary-dark: #287271;
  --secondary: #3D5A80;
  --secondary-dark: #293F60;
  --light-teal: #66C2B5;
  --dark-blue: #0F1626;
  --light-gray: #F8F9FC;
  --border-color: #E3E6F0;
}

/* Stile generale */
body {
  font-family: 'Space Grotesk', sans-serif;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--dark-blue) 0%, var(--secondary-dark) 100%);
  transition: all 0.3s ease;
}

.sidebar .sidebar-brand {
  height: 80px;
  padding: 0;
}

.sidebar .sidebar-brand-icon {
  display: none;
}

.sidebar .sidebar-brand-text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.sidebar .sidebar-brand-text img {
  max-height: 60px;
  max-width: 80%;
}

.sidebar-dark .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 1rem 1.5rem;
}

.sidebar-dark .nav-item .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-dark .nav-item .nav-link i {
  color: var(--light-teal);
  font-size: 1rem;
  margin-right: 0.75rem;
}

.sidebar-dark .nav-item.active .nav-link {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 600;
}

.sidebar-dark .nav-item.active .nav-link i {
  color: #fff;
}

.sidebar-dark hr.sidebar-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-dark .sidebar-heading {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Topbar */
.topbar {
  height: 70px;
}

.topbar .navbar-search {
  width: 40%;
}

.topbar .navbar-search .form-control {
  background-color: var(--light-gray);
  border: 1px solid var(--border-color);
  font-family: 'Space Grotesk', sans-serif;
}

.topbar .navbar-search .btn {
  background-color: var(--primary);
  border-color: var(--primary);
}

.topbar .navbar-search .btn:hover {
  background-color: var(--primary-dark);
}

.topbar .dropdown .dropdown-menu {
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 0.5rem;
}

.topbar .dropdown .dropdown-menu .dropdown-item:hover {
  background-color: var(--light-gray);
}

/* Cards */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  margin-bottom: 1.5rem;
}

.card .card-header {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-top-left-radius: 0.75rem !important;
  border-top-right-radius: 0.75rem !important;
  padding: 1rem 1.25rem;
  font-weight: 600;
  border: none;
}

.card-header h6 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
}

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

.btn-secondary {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border: none;
}

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

/* Border left cards */
.border-left-primary {
  border-left: 0.25rem solid var(--primary) !important;
}

.border-left-success {
  border-left: 0.25rem solid var(--secondary) !important;
}

.border-left-info {
  border-left: 0.25rem solid var(--light-teal) !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
  border-left: 0.25rem solid #e74a3b !important;
}

/* Dashboard cards */
.dashboard-card {
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}

.dashboard-card .card-body {
  padding: 1.5rem;
}

.dashboard-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dashboard-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dashboard-card .card-text {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Charts */
.chart-area {
  height: 20rem;
  position: relative;
}

/* Tables */
.table {
  font-family: 'Space Grotesk', sans-serif;
}

.table thead th {
  background-color: var(--light-gray);
  border-top: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
  background-color: rgba(42, 157, 143, 0.05);
}

/* Footer */
.sticky-footer {
  padding: 1.5rem 0;
  background-color: white;
}

/* Sidebar toggle state */
.sidebar-toggled .sidebar {
  width: 6.5rem !important;
}

.sidebar-toggled .sidebar .sidebar-brand-text img {
  max-width: 90%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .topbar .navbar-search {
    width: 100%;
  }
  
  .chart-area {
    height: 15rem;
  }
}
