/* ===== BASIC RESET ===== */

*{
box-sizing:border-box;
}

body{
margin:0;
font-family:Arial, sans-serif;
}


/* ===== LOGIN PAGE ===== */

#loginPage{
position:fixed;
top:5;
left:0;
width:100%;
height:90vh;
background:#2c3e50;
display:flex;
justify-content:center;
align-items:center;
}


/* LOGIN CARD */

.login-card{
background:white;
width:360px;
padding:35px;
border-radius:15px;
text-align:center;
box-shadow:0 20px 40px rgba(0,0,0,0.3);
}


/* APP TITLE */

.app-title{
margin: top 60px;;
color:#2c3e50;
}

/* INPUT FIELDS */

.login-card input{
width:100%;
padding:12px;
margin:8px 0;
border-radius:8px;
border:1px solid #ccc;
font-size:14px;
}

.login-card input:focus{
outline:none;
border-color:#2c3e50;
box-shadow:0 0 5px rgba(44,62,80,0.3);
}


/* BUTTON */

.login-card button{
width:100%;
padding:12px;
margin-top:8px;
border:none;
border-radius:8px;
background:#2c3e50;
color:white;
font-size:15px;
cursor:pointer;
transition:0.3s;
}

.login-card button:hover{
background:#34495e;
}


/* ERROR */

#loginError{
color:red;
font-size:13px;
}


/* DIVIDER */

.login-card hr{
margin:20px 0;
border:none;
border-top:1px solid #ddd;
}


/* ===== APP LAYOUT ===== */

#app{
display:flex;
}


/* SIDEBAR */

.sidebar{
width:200px;
background-color:#2c3e50;
color:white;
min-height:100vh;
padding:20px 0;
}

.sidebar h2{
text-align:center;
margin-bottom:20px;
}

.sidebar ul{
list-style:none;
padding:0;
}

.sidebar ul li{
padding:10px 20px;
cursor:pointer;
}

.sidebar ul li.active,
.sidebar ul li:hover{
background-color:#34495e;
}


/* MAIN CONTENT */

.main{
flex:1;
padding:20px;
}


/* SECTIONS */

.section{
display:none;
}

.section.active{
display:block;
}


/* CARDS */

.cards-container{
display:flex;
flex-wrap:wrap;
gap:15px;
max-height:400px;
overflow-y:auto;
}

.medicine-card{
background:#f9f9f9;
padding:10px;
border-radius:8px;
box-shadow:0px 1px 5px rgba(0,0,0,0.1);
width:250px;
margin:10px 0;
border:1px solid #ccc;
}
.medicine-card h3{
color:#2c3e50;
margin-top:0;
}

.medicine-card b{
color:red;
}
.pathway-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.pathway-step {
  background-color: #f0f0f0;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-weight: 500;
}

/* AUTOCOMPLETE */

.autocomplete-list{
border:1px solid #ccc;
max-height:15opx;
overflow-y:auto;
margin-top:5px;
background:white;
}

.autocomplete-item{
padding:6px;
cursor:pointer;
}

.autocomplete-item:hover{
background:#eee;
}