
* {
margin: 0;
padding: 0;
box-sizing: border-box;

}
:root {
  --bg-main:linear-gradient(135deg, #215692, #112D4E);
  --panel-bg: rgba(255,255,255,0.06);
  --panel-border: rgba(255,255,255,0.18);
  --accent: #61dff0de;
  --text-main: #DBE2EF;
  --text-muted:  #bec5d1;
 
}


html
{
font-family:Poppins,'Segoe UI';
line-height: 1.5rem;
}
body
{
      background: var( --bg-main);
   color:var(--text-main);
      min-height: 100vh;
display: grid;
grid-template-columns:auto 1fr;
grid-template-rows: auto 1fr auto;
grid-template-areas: 
"navbar navbar"
"sidebar main"
"sidebar footer";

}
.container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}


nav
{
position:sticky;
  color: #DBE2EF;
grid-area: navbar;
padding: 1em;
align-items:center;
justify-content: space-between; 


}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--panel-border);
}

#userName {
  font-weight: 600;
  letter-spacing: 0.3px;
}


#menub{
  background:none;
  border:none;
  font-size:26px;
  color: #DBE2EF;
  cursor:pointer;
}

#userName{
 
  font-weight:700;
 
}

.trainee-actions {
  display: flex;
  gap: 6px;
   align-items: center; 
  gap: 8px; 
  margin-top: 10px;
}

.trainee-actions a{
text-decoration:none;
color:inherit;

}
.trainee-actions button {
   color: #DBE2EF;
  border-radius: 6px;
  border: none;
  cursor: pointer;
   height: auto;
  white-space: nowrap;
  padding: 8px 12px;

   background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.action_btn button {

  margin-top: 20px;
margin-left: 10px;
  font-size: 1.2rem;
   color: #DBE2EF;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
   height: auto;
  white-space: nowrap;
  padding: 12px 16px;
   background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 40px rgba(126, 126, 126, 0.2);
}


.course_name_display {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 26px;
  text-align: center;
  color: var(--accent);
}

.trainee_message{
color: #112D4E;
background-color:#DBE2EF; 
padding: 10px;
border: 1px solid#DBE2EF;
border-radius: 5px;
margin-bottom: 15px;
text-align: center;



}
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Allows horizontal scrolling */
}
.course_table{
width:100%;
border-collapse: collapse;
 border: 1px solid #DBE2EF;
  border-radius: 14px;
  overflow: hidden;
  padding: 20px 20px;
  
}
.course_table tr {
background: var(--panel-bg);
text-align: right;
 direction: rtl; 
   line-height:35px;
  border: 1px solid var(--panel-border);
  border-radius: 6px; 
}
.course_table td {
    padding: 12px 25px; 
}
.course_table th {
  padding: 12px 10px;
  line-height:40px;
  color: var(--accent);
  text-align: center;
}



#guest_note{
text-decoration: none;
  color: #DBE2EF;
}

aside
{ 
     color: #DBE2EF;
    background-color:var(--bg-main); 
    height:calc(100vh - 50.87px) ;
    top: 50.87px;
    position: sticky;
    align-self: start; 
   grid-area: sidebar; 
   padding:7px 1em ;
   overflow-y:auto;
}
aside {
  background: rgba(26, 77, 136, 0.705);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#sidebar li {
  transition: background 0.25s ease, transform 0.25s ease;
}

#sidebar li:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

#sidebar li.active {
  background: rgba(79,209,197,0.25);
  border-left: 4px solid var(--accent);
}

main
{
    grid-area:main ;
    padding: min(30px,7%);
}
footer
{
    color: #DBE2EF;
    grid-area: footer;
    padding: 1em;
}

#sidebar
{
 padding:7px 1em ;
 margin-right: 3px;
 border-right:1px solid #3F72AF;
 border-radius: 1em;
  transition:0.3s;

}
#sidebar ul
{
list-style: none;
}

#sidebar li{
display: flex;
justify-content:flex-start;
  padding:12px;
  border-radius:8px;
  margin-bottom:6px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
}

#sidebar li:hover{
  background:#2f70ba;
}


#sidebar a ,#sidebar .logo 
{ 
padding: 10px;
border-radius: .5em;
text-decoration: none;
  color: #DBE2EF;
display: flex;
align-items: center;
gap: 8px;
align-self: start;
position: sticky;
}
#sidebar a span
{
    flex-grow: 1;
}



@media(max-width:700px)
{
body 
{
grid-template-columns: 1fr;
grid-template-areas:
"navbar"
"main"
"footer";
}
aside
{
position: fixed;
width:200px;
display:none;  
}
aside.show
{
display: block

}
}
.dashboard-cards {
  display: flex;
  gap: 1em;
  margin-top: 1em;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  padding: 1.3em;
  border-radius: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  font-size: 0.95rem;
}

.card strong {
  display: block;
  font-size: 1.9rem;
  color: var(--accent);
}
.suggested {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1em;
  margin-top: 12px;
}

.course-box {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.3em;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}

.course-box h4 {
  margin-bottom: 6px;
}

.course-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.certificate-form input,
.certificate-form button {
  display: block;
  width: 100%;
  padding: .6em;
  margin-bottom: 10px;
  border-radius: .5em;
}

/* Target the select element specifically */
select.form-control {
    width: 50%;
    padding: 12px 15px;
    margin-left: 10px;
    font-size: 16px;
    color: #1d1d1d;
    background-color: #DBE2EF;
    border: 1px solid #bebebe;
    border-radius: 8px; 
    box-sizing: border-box;
}
/* Add a nice glow when the user clicks/focuses on the dropdown */
select.form-control:focus {
    outline: none;
    border-color: #007bffdc; /* Adjust this hex code to match your theme's exact blue */
    box-shadow: 0 0 7px rgba(120, 176, 236, 0.795);
}

/* Grey out the "Choose a course" placeholder text */
select.form-control option:disabled {
    color:var(--accent);
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}

h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

h4 {
  font-size: 1.05rem;
}
