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

/* fonts */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}


body {
  background: -webkit-linear-gradient(90deg, #2f5d62, #3e7c85, #4da8b3);
  background: linear-gradient(90deg, #2f5d62, #3e7c85, #4da8b3);
  min-height: 100vh;
  font-family: 'Inter';
  color: #1E2A2C;
}

html {
    scroll-behavior: smooth;
}

section {
  height: 100vh;
}

.search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 78px);
  padding: 0 5%;
}

.search-section label {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
  width: 100%;
  max-width: 666px;
}

.program-search {
  position: relative;
  width: 100%;
  max-width: 666px;
}

.program-input {
  width: 100%;
  padding: 14px 14px;
  font-size: 1rem;
  border: 2px solid transparent;
  outline: none;
  border-radius: 12px;
  
}

#program-input:focus{
  outline: none;
  border-color:#5FA8A8;
}


.hidden {
  display: none !important;
}

.dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  border: 2px solid #5FA8A8;
  border-radius: 12px;
  background: #fff;
  display: none;
  z-index: 9999;
  max-height: 40vh;
  overflow-y: auto;

}

.dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease
}

.dropdown-item:hover {
    background-color: #4DA8B3;
    color: white;

}

.dashboard {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

/* --- Rows --- */
.row-charts {
  display: grid;
  height: 100%;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(100px, auto);
}

.row-charts .dashboard-card {
  min-height: 280px;
}


.row-table {
  width: 100%;
  display: flex;
  padding: 16px;
}

.row-table .dashboard-card {
  display: block;
  padding: 0;
  overflow: hidden;
  width: 100%;
}

/* --- Card base --- */
.dashboard-card {
  background-color: white;
  border: 2px solid #E3EEF0;
  border-radius: 12px;
  padding: 20px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* --- Table card header label --- */
.row-table .dashboard-card::before {
  content: 'Список заявлений';
  text-align: center;
  display: block;
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1E2A2C;
  background: #e5fcff;
  border-bottom: 2px solid #E3EEF0;
  letter-spacing: 0.02em;
}

/* --- Table styles --- */
.row-table .dashboard-card table {
  width: 100%;
  border-collapse: separate;
  text-align: center;
  border-spacing: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.row-table .dashboard-card table thead th {

  color: #1E2A2C;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.2);
  position: sticky;
  top: 0;
}

.row-table .dashboard-card table thead th:last-child {
  border-right: none;
}

.row-table .dashboard-card table tbody tr {
  transition: background 0.15s;
}

/* подсветка четных */
.row-table .dashboard-card table tbody tr:nth-child(even) {
  background: #f5fcfc;
}

/* ховер эффект */
.row-table .dashboard-card table tbody tr:hover {
  background: #daf0f2;
}

.row-table .dashboard-card table tbody td {
  padding: 11px 20px;
  color: #1E2A2C;
  border-bottom: 1px solid #E3EEF0;
  border-right: 1px solid #E3EEF0;
}

.row-table .dashboard-card table tbody td:last-child {
  border-right: none;
}

.row-table .dashboard-card table tbody tr:last-child td {
  border-bottom: none;
}

.row-table .dashboard-card table tbody td:first-child {
  font-weight: 700;
  color: #5FA8A8;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .row-charts {
    flex-direction: column;
  }

  .row-images .dashboard-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .row-images {
    flex-direction: column;
  }

  .row-images .dashboard-card {
    max-width: 100%;
  }
}
