/* ====== MODERN LAYOUT ====== */

body{
  font-family: "Segoe UI", Arial;
  background:#f4f6ff;
  margin:0;
  display:flex;
  min-height:100vh;
}

/* LEFT SIDEBAR LOGO + NAV */

.sidebar{
  width:260px;
  background:#1f5088;
  color:white;
  padding:25px;
  box-shadow: 4px 0 12px rgba(0,0,0,.15);
}

.sidebar h2{
  margin-top:0;
  font-size:22px;
}

.header-nav{
  margin-top:40px;
  display:flex;
  flex-direction:column;
}

.header-nav a{
  color:white;
  padding:10px 0;
  text-decoration:none;
  opacity:.9;
}

.header-nav a:hover{
  opacity:1;
  text-decoration:underline;
}

/* MAIN CONTENT AREA */

.content{
  padding:50px;
  flex:1;
}

.content h1{
  font-size:36px;
  margin-bottom:10px;
}

.content p{
  font-size:15px;
  color:#333;
}

/* DASHBOARD LINK */

.content a{
  display:inline-block;
  margin-top:10px;
  color:#0066ff;
  text-decoration:none;
}

/* FEATURE CARDS */

.card{
  background:white;
  padding:18px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  margin-top:18px;
  font-size:15px;
}

/* FOOTER */

.footer{
  text-align:center;
  padding:20px;
  color:#444;
  margin-top:25px;
  border-top:1px solid #e3e6f0;
}

/* MOBILE */

@media(max-width:800px){

  body{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    text-align:center;
  }

  .header-nav{
    flex-direction:row;
    justify-content:center;
    gap:15px;
  }

  .content{
    padding:20px;
  }
}
.to{
  display:inline-block;
  margin-top:10px;
  color:#2c2d30;
  text-decoration:none;
}
/* DASHBOARD CARD WRAPPER */
.content{
  padding:40px;
  flex:1;
}

/* Make dashboard UI look like a card */
.content h2, 
.content p, 
.content button, 
.content input, 
#summary{
  max-width:700px;
}

.dashboard-box{
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  border:1px solid #e5e8f0;
}
.success{
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}
.danger{
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}
button:hover{
  background-color: #20b313;
}
.primary { 
  background: #4f46e5;
  color: white; 
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}     /* Start button */
.warning {
  background: #f59e0b; 
  color: white; 
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  }     /* Stop button */
  button:hover{
  opacity: .9;
  transform: translateY(-1px);
  transition: .2s;
}

/* ===== AUTH PAGES ===== */
.auth-card{
  max-width:420px;
  background:white;
  margin:40px auto;
  padding:24px;
  border-radius:10px;
  box-shadow:0 8px 30px rgba(15,23,42,.06);
  border:1px solid #eef2ff;
}
.auth-card h2{
  margin-top:0;
}
.auth-card label{
  display:block;
  margin-top:12px;
  font-size:14px;
  color:#333;
}
.auth-card input{
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  border:1px solid #dfe7ff;
  border-radius:8px;
  font-size:15px;
}
.auth-card .muted{
  color:#666;
  margin-top:12px;
}
.auth-card .error{
  color:#c62828;
  margin-top:10px;
}
.auth-card .success{
  color:#1e7e34;
  margin-top:10px;
}

@media(max-width:800px){
  .auth-card{ margin:20px; }
}
