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

body{
  min-height:100vh;
  font-family:"Arial", sans-serif;
  color:#062b55;
  background:
    radial-gradient(circle at top right, rgba(120,225,255,.45), transparent 35%),
    linear-gradient(120deg,#ffffff,#ecfbff 60%,#dff8ff);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(#c9efff 1px,transparent 1px),
    linear-gradient(90deg,#c9efff 1px,transparent 1px);
  background-size:42px 42px;
  opacity:.35;
  z-index:-1;
}

.navbar{
  width:100%;
  height:64px;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid #b7efff;
  box-shadow:0 0 18px rgba(0,200,255,.18);
}

.logo{
  font-size:24px;
  font-weight:900;
  color:#005bd6;
  text-shadow:0 0 8px rgba(0,160,255,.35);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:12px;
}

.nav-links select{
  padding:7px 10px;
  border-radius:10px;
  border:1px solid #8beaff;
  font-weight:700;
  background:white;
}

.nav-links a{
  color:#005bd6;
  text-decoration:none;
  font-size:18px;
  font-weight:900;
}

.container{
  width:100%;
  min-height:calc(100vh - 64px);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:55px 20px;
}

.container.small{
  max-width:980px;
  margin:0 auto;
}

.login-card,
.dash-card,
.question,
.result-card{
  width:100%;
  background:rgba(255,255,255,.9);
  border:1.8px solid #9beaff;
  border-radius:28px;
  box-shadow:
    0 0 20px rgba(0,200,255,.22),
    inset 0 0 20px rgba(0,200,255,.08);
  padding:28px;
}

.login-card h1{
  text-align:center;
  font-size:32px;
  color:#005bd6;
  margin-bottom:14px;
  font-weight:900;
}

.login-card p{
  text-align:center;
  font-size:18px;
  font-weight:700;
  margin-bottom:20px;
  color:#31435a;
}

.qr-box{
  width:100%;
  max-width:380px;
  margin:20px auto 25px;
  padding:22px;
  text-align:center;
  border:1.5px solid #9beaff;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  box-shadow:0 0 15px rgba(0,200,255,.18);
}

.qr-box h3{
  font-size:21px;
  color:#005bd6;
  margin-bottom:14px;
}

.qr-box img{
  width:180px;
  height:180px;
  object-fit:contain;
  margin:8px auto;
  display:block;
}

label{
  display:block;
  margin:14px 0 7px;
  font-size:18px;
  font-weight:900;
  color:#061d3a;
}

input,
select,
textarea{
  width:100%;
  min-height:52px;
  border:1.7px solid #93e6ff;
  border-radius:16px;
  padding:12px 16px;
  font-size:16px;
  background:rgba(255,255,255,.95);
  outline:none;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#22cfff;
  box-shadow:0 0 15px rgba(0,200,255,.3);
}

textarea{
  min-height:150px;
  resize:vertical;
}

button{
  width:100%;
  min-height:58px;
  margin-top:22px;
  border:none;
  border-radius:18px;
  background:linear-gradient(90deg,#2fc3ee,#0b5bd8);
  color:white;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 0 18px rgba(0,120,255,.3);
  transition:.25s;
}

button:hover{
  transform:translateY(-3px);
  box-shadow:0 0 28px rgba(0,160,255,.45);
}

#studentMsg,
#teacherMsg,
#psychologistMsg,
#adminMsg{
  margin-top:15px;
  font-weight:900;
  text-align:center;
}

#survey{
  width:100%;
  display:grid;
  gap:16px;
}

.question{
  padding:18px;
}

.question p{
  text-align:left;
  font-size:17px;
  font-weight:800;
  margin-bottom:10px;
}

#result{
  margin-top:20px;
  font-weight:800;
}

.dashboard{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:35px 20px;
}

.dashboard h1{
  text-align:center;
  font-size:34px;
  color:#005bd6;
  margin-bottom:24px;
}

.summary-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:20px;
}

.dash-card{
  text-align:center;
}

.dash-card h3{
  color:#005bd6;
  margin-bottom:10px;
}

.dash-card h2{
  font-size:32px;
  color:#061d3a;
}

.prediction{
  text-align:left;
}

table{
  width:100%;
  border-collapse:collapse;
  background:white;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 0 15px rgba(0,200,255,.18);
}

th,
td{
  padding:12px;
  border-bottom:1px solid #d5f4ff;
  text-align:left;
  font-size:15px;
}

th{
  background:#e9faff;
  color:#005bd6;
  font-weight:900;
}

.badge{
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  display:inline-block;
}

.badge.high{
  background:#ffd8d8;
  color:#b00000;
}

.badge.medium{
  background:#fff1b8;
  color:#8a6200;
}

.badge.low{
  background:#d8ffe4;
  color:#007a2e;
}

@media(max-width:850px){
  .navbar{
    height:auto;
    padding:16px;
    flex-direction:column;
    gap:10px;
  }

  .nav-links{
    flex-wrap:wrap;
    justify-content:center;
  }

  .container{
    padding:30px 14px;
  }

  .login-card{
    padding:22px;
  }

  .summary-grid{
    grid-template-columns:1fr;
  }

  table{
    font-size:13px;
  }
}
/* DASHBOARD экранға сыйғызу */
.container.small{
  max-width: 1180px;
  padding: 35px 14px;
}

.section-title{
  font-size: 30px;
  margin-bottom: 18px;
}

.toolbar{
  margin-bottom: 18px;
}

.toolbar button{
  width: auto;
  min-width: 150px;
  padding: 12px 22px;
  font-size: 18px;
}

.summary-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin-bottom:18px;
}

.dash-card{
  padding:18px 12px;
  min-height:120px;
}

.dash-card h3{
  font-size:18px;
}

.dash-card h2{
  font-size:34px;
}

.table-wrap{
  overflow-x:auto;
}

.table-wrap table{
  min-width: 720px;
}

@media(max-width:1000px){
  .summary-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px){
  .summary-grid{
    grid-template-columns: 1fr;
  }
}
