body{
  margin: 0px;
  background-color:#2c3e50 ;
}
h2{
  color: #f2f2f2;
  justify-self: center;

}
.navbar{

}
.nav-links {
  display: flex;
  gap: 30px;
}
.logo {
 padding-left: 600px;
}
.logo img{
  width: 300px;
  
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}
.form {
  --input-focus: #2d8cf0;
  --font-color: #323232;
  --font-color-sub: #666;
  --bg-color: beige;
  --main-color: black;
  padding: 20px;
  background: hsla(307, 88%, 64%, 0.403);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  width: 400px;
  height: 400px;
  align-items: center;
  justify-self: center;
  
}

.title {
  color: white;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 25px;
  justify-self: center  ;
}

.title span {
  color: white;
  font-weight: 600;
  font-size: 17px;
}

.input {
  width: 250px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 4px 4px var(--main-color);
  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);
  padding: 5px 10px;
  outline: none;
}

.input::placeholder {
  color: var(--font-color-sub);
  opacity: 0.8;
}

.input:focus {
  border: 2px solid var(--input-focus);
}



.button-confirm {
  margin-left: 15px;
 margin-right: 15px;
  width: 120px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 4px 4px var(--main-color);
  font-size: 17px;
  font-weight: 600;
  color: var(--font-color);
  cursor: pointer;
}
.button-confirm:hover{
  background-color: #666666b6;
  color: white;
}
.button-confirm a{
  text-decoration: none;
 
}
.button-confirm a:hover{
  color: white;
}
.button-log {
  margin-left: 15px;
 margin-right: 15px;
  width: 200px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 4px 4px var(--main-color);
  font-size: 17px;
  font-weight: 600;
  color: var(--font-color);
  cursor: pointer;
}
.button-log:hover{
  background-color: #666666b6;
  color: white;
}
.button-log a{
  text-decoration: none;
 
}
.button-log a:hover{
  color: white;
}
.field { 
  position: relative; 

}
 
.btn {
  background: #7fcdbc;
  font-family: inherit;
  padding: 0.6em 1.3em;
  font-weight: 900;
  font-size: 18px;
  border: 3px solid black;
  border-radius: 0.4em;
  box-shadow: 0.1em 0.1em;
  cursor: pointer;
}

.btn:hover {
  transform: translate(-0.05em, -0.05em);
  box-shadow: 0.15em 0.15em;
}

.btn:active {
  transform: translate(0.05em, 0.05em);
  box-shadow: 0.05em 0.05em;
}



.lblUser{
  position:absolute;
  left:10px;
  top:15px;
  background:beige;
  padding:0 5px; 
  transition: transform 0.3s ease, color 0.3s ease;
    
}

.input:focus + .lblUser,
.input:not(:placeholder-shown) + .lblUser{
  transform: translateY(-25px);
  border: solid black 2px;
  color:rgb(0, 0, 0);
}
.input:focus{
  border-color: #2d8cf0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 70px;
  background-color: #111;
  color: #fff;
}
/* Table Design */

table {
  margin: auto;
  border-collapse: collapse;
  width: 80%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 
  }

  th {
  background-color: hsl(307, 52%, 28%);
  color: white;
  padding: 10px;
  }

  td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  }

  tr:hover {
  background-color: #f2f2f2;
  }

  .edit-btn {
  color: green;
  font-weight: bold;
  }

  .delete-btn {
  color: red;
  font-weight: bold;
  }
  td a{
    text-decoration: none;
  }
  td a:visited{
    color: blue;
  }


/* MODAL BACKGROUND */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

/* MODAL CONTENT */
.modal-content {
    position: relative;
    margin: 5% auto;
    width: 70%;
    max-width: 700px;
}

/* VIDEO */
.modal-content video {
    width: 100%;
    border-radius: 10px;
}

/* CLOSE BUTTON (X) */
.close {
    position: absolute;
    top: -10px;
    right: 10px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #2c3e50;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #1a252f;
  color: white;
  padding: 20px;
}


.sidebar h2 {
  margin-top: 0;
  color: #fff;
}

.sidebar p {
  font-size: 14px;
  margin: 10px 0;
}

.sidebar a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px;
  margin: 8px 0;
  background: #34495e;
  border-radius: 6px;
}

.sidebar a:hover {
  background: #4b6584;
}

.main-content {
  flex: 1;
  padding: 20px;

}

table {
  background: white;
  border-collapse: collapse;
}

table th, table td {
  text-align: center;
}
.form-info {
    width: 180px;
    background: white;
    color: #1a252f;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 5px 5px 0 black;
    border: 2px solid black;
    margin-left: 25px;
    margin-bottom: 20px;
    text-align: center;
    justify-self: center;
}

#liveDate {
    display: block;
    color: #7b1f66;
    font-size: 20px;
    margin-bottom: 5px;
}

#liveTime {
    display: block;
    color: #16a085;
    font-size: 22px;
}
.formweek {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 25px;
}

.week-box {
    display: flex;
    align-items: center;
    gap: 15px;

    background: white;
    padding: 18px 25px;

    border-radius: 14px;

    border: 3px solid black;

    box-shadow: 6px 6px 0 black;
}

.week-box label {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.week-box input[type="date"] {

    padding: 10px 14px;

    border-radius: 8px;

    border: 2px solid #7b1f66;

    font-size: 15px;

    outline: none;

    font-weight: bold;
}

.week-box input[type="date"]:focus {
    border-color: #16a085;
}

.week-btn {

    background: #7b1f66;

    color: white;

    border: none;

    padding: 10px 20px;

    border-radius: 8px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.week-btn:hover {

    background: #9b2f82;

    transform: translateY(-2px);
}
.week-display {

    text-align: center;

    background: white;

    width: fit-content;

    margin: auto;

    padding: 16px 30px;

    border-radius: 14px;

    border: 3px solid black;

    box-shadow: 6px 6px 0 black;

    margin-bottom: 30px;
}

.week-title {

    color: #7b1f66;

    font-size: 15px;

    font-weight: bold;

    letter-spacing: 1px;
}

.week-display {

    font-size: 22px;

    font-weight: bold;

    color: #2c3e50;
}

.week-separator {

    color: #16a085;

    margin: 0 10px;

    font-size: 26px;
}
.suggestion {
    font-size: 13px;
    color: black;
    margin-top: 5px;
    margin-bottom: 15px;
}
/* =========================
   MOBILE RESPONSIVE LAYOUT
   Add this at the VERY BOTTOM
   ========================= */

@media screen and (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .navbar {
    height: auto;
    padding: 15px 20px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .logo {
    padding-left: 0;
    text-align: center;
  }

  .logo img {
    width: 180px;
    max-width: 100%;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .form {
    width: 85%;
    max-width: 360px;
    height: auto;
    min-height: 360px;
    padding: 20px 15px;
    margin: 30px auto;
    justify-self: unset;
  }

  .title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
  }

  .title span {
    font-size: 16px;
  }

  .input {
    width: 100%;
    max-width: 260px;
    box-sizing: border-box;
  }

  .field {
    width: 100%;
    max-width: 260px;
  }

  .button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .button-confirm,
  .button-log {
    width: 100%;
    max-width: 220px;
    margin-left: 0;
    margin-right: 0;
  }

  table {
    width: 95%;
    font-size: 13px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    padding: 8px;
  }

  .modal-content {
    width: 90%;
    margin-top: 25%;
  }

  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: auto;
    padding: 15px;
    text-align: center;
  }

  .sidebar a {
    margin: 8px auto;
  }

  .main-content {
    padding: 15px;
  }

  .form-info {
    width: 80%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  .formweek {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .week-box {
    flex-direction: column;
    width: 90%;
    padding: 15px;
    gap: 12px;
    text-align: center;
  }

  .week-box input[type="date"] {
    width: 100%;
    box-sizing: border-box;
  }

  .week-btn {
    width: 100%;
  }

  .week-display {
    width: 85%;
    font-size: 18px;
    padding: 14px 18px;
  }

  .week-separator {
    display: block;
    margin: 8px 0;
  }

  h2 {
    text-align: center;
    justify-self: unset;
  }
}

@media screen and (max-width: 480px) {

  .logo img {
    width: 150px;
  }

  .form {
    width: 88%;
    padding: 18px 12px;
  }

  .input {
    max-width: 240px;
  }

  .field {
    max-width: 240px;
  }

  .button-confirm,
  .button-log {
    max-width: 200px;
  }

  .title {
    font-size: 18px;
  }

  table {
    font-size: 12px;
  }

  .week-display {
    font-size: 16px;
  }

  #liveDate {
    font-size: 17px;
  }

  #liveTime {
    font-size: 19px;
  }
}