/* =============================================================================
   ЦД.ETL - Пользовательские стили
   ============================================================================= */

/* Шрифты */
@font-face {  
  src: url(Panton-Regular.otf);
  font-family: "Panton";
}

/* Общие стили */
body {
  font-family: 'Panton', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.p_Style {
  font-family: 'Panton', sans-serif;
}

.content-wrapper, .right-side {
  background-color: #f4f6f9;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #2c3e50;
}

/* Боксы */
.box {
  border-top: 3px solid #3c8dbc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.box-header {
  background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
  border-bottom: 1px solid #e0e0e0;
}

.box-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

/* Info boxes */
.info-box {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-box:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.info-box-icon {
  border-radius: 4px 0 0 4px;
}

/* Value boxes */
.small-box {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.small-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.small-box h3 {
  font-size: 38px;
  font-weight: bold;
}

/* Статусы */
.status-ok {
  background-color: #d4edda !important;
  border-left: 4px solid #28a745 !important;
}

.status-error {
  background-color: #f8d7da !important;
  border-left: 4px solid #dc3545 !important;
}

.status-warning {
  background-color: #fff3cd !important;
  border-left: 4px solid #ffc107 !important;
}

.status-unknown {
  background-color: #e2e3e5 !important;
  border-left: 4px solid #6c757d !important;
}

/* Карточки узлов */
.node-card {
  border-left: 4px solid #3c8dbc;
  margin-bottom: 15px;
  padding: 20px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.node-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateX(5px);
}

.node-card h4 {
  margin-top: 0;
  color: #3c8dbc;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 2px solid #ecf0f5;
  padding-bottom: 10px;
}

.node-card .table {
  margin-top: 15px;
  font-size: 14px;
}

.node-card .table th {
  width: 180px;
  font-weight: 600;
  color: #555;
  background-color: #f8f9fa;
  padding: 8px 12px;
}

.node-card .table td {
  padding: 8px 12px;
  color: #333;
}

/* Бейджи индикаторов */
.badge-indicator {
  display: inline-block;
  padding: 6px 12px;
  margin: 3px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Результаты поиска */
.search-result {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  margin-bottom: 5px;
  border-radius: 4px;
}

.search-result:hover {
  background-color: #f0f4f8;
  padding-left: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.search-result h5 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 16px;
}

.search-result p {
  margin: 0;
  color: #7f8c8d;
  font-size: 13px;
}

/* Кнопки */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
}

/* Таблицы */
.dataTables_wrapper {
  padding: 10px;
}

.dataTables_wrapper table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;
  overflow: hidden;
}

.dataTables_wrapper thead th {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ecf0f5 100%);
  color: #2c3e50;
  font-weight: 600;
  border-bottom: 2px solid #3c8dbc;
  padding: 12px;
}

.dataTables_wrapper tbody tr {
  transition: all 0.2s ease;
}

.dataTables_wrapper tbody tr:hover {
  background-color: #f0f4f8 !important;
  transform: scale(1.01);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.dataTables_wrapper tbody td {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
}

/* Алерты */
.alert {
  border-radius: 4px;
  border-left: 4px solid;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.alert-danger {
  border-left-color: #dc3545;
  background-color: #f8d7da;
  color: #721c24;
}

.alert-warning {
  border-left-color: #ffc107;
  background-color: #fff3cd;
  color: #856404;
}

.alert-info {
  border-left-color: #17a2b8;
  background-color: #d1ecf1;
  color: #0c5460;
}

.alert-success {
  border-left-color: #28a745;
  background-color: #d4edda;
  color: #155724;
}

/* Sidebar */
.sidebar-menu > li > a {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li.active > a {
  border-left-color: #3c8dbc;
  background-color: #1e282c;
}

/* Inputs */
.form-control {
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #3c8dbc;
  box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.25);
}

/* Графы visNetwork */
.vis-network {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
}

/* Plotly графики */
.plotly {
  border-radius: 6px;
}

/* Скроллбары */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #3c8dbc;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2c6c94;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
  .node-card {
    padding: 15px;
  }
  
  .small-box h3 {
    font-size: 28px;
  }
  
  .box-title {
    font-size: 16px;
  }
}

/* Загрузка */
.shiny-busy-panel {
  background-color: rgba(0, 0, 0, 0.4);
}

.shiny-notification {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
