/* ===== NoidaTut Dashboard Base ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #e9f0ff;
  color: #333;
}

.dashboard {
  display: flex;
  min-height: 100vh;
  background: #e9f0ff;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 260px;
  background: #004aad;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 20px;
}

.sidebar h1 {
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 30px;
}

.sidebar h1 span {
  color: #00c3ff;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #00c3ff;
  color: #002d6a;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  padding: 40px;
  background: #f8faff;
}

.main-content h2 {
  color: #004aad;
  margin-bottom: 20px;
}

/* ===== Form Styling ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

label {
  font-weight: 600;
  color: #00347d;
}

input[type="text"],
select,
input[type="file"] {
  padding: 10px;
  border: 1px solid #cdd7f0;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

input:focus,
select:focus {
  border-color: #004aad;
}

button {
  background: #004aad;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #00347d;
}

/* ===== Search Panel ===== */
.search-panel {
  margin-bottom: 20px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.search-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-group input {
  flex: 1;
  min-width: 160px;
  padding: 8px;
}

.search-group button,
.search-group .reset-btn {
  background: #004aad;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.search-group .reset-btn {
  background: #00c3ff;
  color: #002d6a;
  text-decoration: none;
}

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #eef1f8;
}

th {
  background: #004aad;
  color: white;
}

td a {
  color: #004aad;
  text-decoration: none;
  font-weight: 500;
}

td a:hover {
  text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    text-align: center;
    padding: 15px;
  }

  .nav-links {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .main-content {
    padding: 20px;
  }

  form {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .nav-links a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  table tr {
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  table td {
    border: none;
    padding: 6px 0;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #004aad;
    display: block;
  }
}

/* ===== Search Panel Styling ===== */
.search-panel {
    max-width: 900px;
    margin: 0 auto 25px auto;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.search-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.search-group input {
    padding: 10px 12px;
    border: 1px solid #ccd6eb;
    border-radius: 6px;
    font-size: 14px;
    width: 230px;
    transition: all 0.3s ease;
}

.search-group input:focus {
    outline: none;
    border-color: #004aad;
    box-shadow: 0 0 5px rgba(0, 74, 173, 0.3);
}

.search-group button {
    background: #004aad;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-group button:hover {
    background: #00347d;
}

.reset-btn {
    background: #f1f5ff;
    color: #004aad;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: #dbe6ff;
}

/* Mobile friendly */
@media (max-width: 768px) {
    .search-group {
        flex-direction: column;
        align-items: stretch;
    }
    .search-group input, .search-group button, .reset-btn {
        width: 100%;
    }
}

