/* ========== CoronaDash Bolivia - Modern Theme ========== */

/* -- Google Font -- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* -- Base typography -- */
body, .content-wrapper, .main-sidebar, .sidebar-menu li a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* -- Sidebar modern -- */
.main-sidebar, .left-side {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

.sidebar-menu > li > a {
  color: #b8c7db !important;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  font-size: 14px;
  padding: 12px 15px 12px 18px;
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li.active > a {
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  border-left: 3px solid #53c1f0;
}

.sidebar-menu > li.active > a {
  font-weight: 600;
}

/* -- Header bar -- */
.main-header .navbar, .main-header .logo {
  background: #1a1a2e !important;
  border-bottom: 2px solid #53c1f0;
}

.main-header .logo {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.main-header .navbar .nav > li > a {
  color: #b8c7db !important;
}

/* -- Content area -- */
.content-wrapper, .right-side {
  background: #f0f2f5 !important;
}

/* -- Boxes modern -- */
.box {
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  transition: box-shadow 0.2s ease;
  margin-bottom: 16px;
}

.box:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10) !important;
}

.box-header {
  border-bottom: 1px solid #e9ecef !important;
  padding: 14px 18px !important;
}

.box-header .box-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

.box-body {
  padding: 16px 18px !important;
}

.box-footer {
  background: #f8f9fa !important;
  border-top: 1px solid #e9ecef !important;
  border-radius: 0 0 10px 10px !important;
  font-size: 12px;
  color: #6c757d;
}

.box.box-solid.box-info {
  border: none !important;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border-radius: 10px !important;
}

.box.box-solid.box-info > .box-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.box.box-solid.box-info > .box-header .box-title {
  color: #ffffff !important;
}

.box.box-solid.box-info > .box-body {
  color: #e0e0e0 !important;
}

.box.box-solid.box-info > .box-body a {
  color: #53c1f0 !important;
}

/* -- Value boxes modern -- */
.small-box {
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.small-box h3 {
  font-size: 24px !important;
  font-weight: 700 !important;
}

.small-box p {
  font-size: 13px !important;
  font-weight: 500 !important;
}

.small-box .icon-large {
  font-size: 60px !important;
  opacity: 0.2;
}

/* Colores value boxes mas modernos */
.bg-orange { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important; }
.bg-red { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important; }
.bg-maroon { background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%) !important; }
.bg-green { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%) !important; }
.bg-yellow { background: linear-gradient(135deg, #f1c40f 0%, #d4ac0d 100%) !important; color: #2c3e50 !important; }
.bg-purple { background: linear-gradient(135deg, #9b59b6 0%, #7d3c98 100%) !important; }
.bg-olive { background: linear-gradient(135deg, #2ecc71 0%, #1abc9c 100%) !important; }

/* -- DataTable modern -- */
.dataTables_wrapper {
  font-size: 12px;
  overflow-x: auto;
}

table.dataTable {
  width: 100% !important;
  table-layout: auto !important;
}

table.dataTable thead th {
  background: #2c3e50 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-bottom: none !important;
  padding: 8px 10px !important;
  font-size: 11px;
  white-space: nowrap;
}

table.dataTable tbody tr:hover {
  background: #ebf5fb !important;
}

table.dataTable tbody td {
  padding: 6px 10px !important;
  font-size: 11px;
  white-space: nowrap;
}

/* -- Dygraphs -- */
.dygraph-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.dygraph-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #2c3e50 !important;
}

.dygraph-legend {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  background: rgba(255,255,255,0.95) !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  border: 1px solid #e9ecef !important;
}

/* -- Picker inputs -- */
.bootstrap-select .btn {
  border-radius: 8px !important;
  border: 1px solid #ced4da !important;
  font-size: 14px !important;
}

/* -- Slider -- */
.irs--flat .irs-bar {
  background: #53c1f0 !important;
}

.irs--flat .irs-handle > i:first-child {
  background: #1a1a2e !important;
}

/* -- Preloader -- */
.wrapper.has-preloader > .preloader {
  background: #1a1a2e !important;
}

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

::-webkit-scrollbar-track {
  background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
  background: #b8c7db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8e9eb5;
}

/* -- Spinner color -- */
.la-ball-clip-rotate > div {
  border-color: #53c1f0 !important;
  border-bottom-color: transparent !important;
}

/* shinydashboard is responsive by default via Bootstrap 3 */
