
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --primary-gradient: linear-gradient(to right, #27AAE1, #662D91); /* teal to purple */
  --btn-bg: #eafaf8;
  --btn-hover-bg-like: #26a69a;   /* soft teal */
  --btn-hover-bg-dislike: #ab47bc; /* soft purple */
  --text-color: #1c1c1c;
  --light-border: #ccc;
  --font-main: "Poppins", sans-serif;
  --max-width: 800px;
}


.topnav {
  /* background-color: #000000; */
  background-image: var(--primary-gradient);
  overflow: hidden;
  width: 100%;

}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #ffffff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  font-family: var(--font-main);
  transition: background 0.3s ease;
}

.topnavuser {

  float: left;
  color: #ffffff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  font-family: var(--font-main);
}

/* Change the color of links on hover */
.topnav a:hover {
  
  background-color: rgba(0, 0, 0, 0.1);
  
  color: white;
}

/* Add a color to the active/current link */
.topnav a.active {
  
  background-color: rgba(0, 0, 0, 0.1);
    color: white;

}

.like-button,
.dislike-button {
    background-color: #eee;
    color: #000000;
    border: 1px solid #ccc;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover effect */
.like-button:hover,
.like-button.active{
  background-color: var(--btn-hover-bg-like);
  color: #fff;
}
.dislike-button:hover,
.dislike-button.active {
  background-color: var(--btn-hover-bg-dislike);
  color: #fff;
}

.backto button{
margin-top: 20px;
padding: 10px 20px;
background-image: var(--primary-gradient);
color: white; 
border: none; 
border-radius: 5px; 
cursor: pointer;

}
body{
  margin: 0;
  padding: 0;
  /* height:100%; */
  font-family: var(--font-main);
  background-color: #f9f9f9;
  color: var(--text-color);

}

button,
.like-button,
.dislike-button,
.reg2 button,
.reg3 button,
.balls,
.login-link,
.register-link {
  background-color: var(--btn-bg);
  color: var(--text-color);
  border: 1px solid var(--light-border);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-family: var(--font-main);
  margin-top: 5px;
}

.reg2 button,
.reg3 button {
  background-image: var(--primary-gradient);
  color: #fff;
  border: none;
}

.reg2 button:hover,
.reg3 button:hover {
  transform: scale(1.05);
}
.about {
 
  padding: 20px;
  margin: 20px;
margin-bottom: 100px;
color: white;

  /* background-color: aqua; */
}

.errcontainer h1{
  color: rgb(255, 0, 0);
  font-size: 100px;

}


.errcontainer h2{

  color: rgb(0, 0, 0);
  font-size: 40px;
}

.errbutton{
  padding: 10px;
  background-image: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;
}


.reg form{

  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);

}

.reg footer{
  background-color: black;
  width: 100%;
}
.reg input,
.reg textarea {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid var(--light-border);
  font-size: 15px;
  box-sizing: border-box;
  width: 100%;
}

footer {
  align-items: center;
  text-align: center;
  justify-content: center;
  background-image: var(--primary-gradient);
  color: white;
  font-size: 17px;
  padding-top: 5px;
  padding-bottom: 5px;
  

}

.reg label {
  font-weight: 600;
}



.reg button {
  
      padding: 10px;
      cursor: pointer;
      padding: 10px 20px;
      border-radius: 5px;
}

.reg button:hover {

  /* background-image: linear-gradient(to right, orange, red); */
  transform: scale(1.05);

}


.filter-section {
  background: white;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 850px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  font-size: 16px;
  margin-bottom: 5px;
  font-family: var(--font-main);

  

}



.Heading {
  font-family: var(--font-main);
  font-weight: bold;
  padding-left: 10px;
  padding-right: 10px;
}

.userdetails {

  font-size: 16px;
  margin-bottom: 5px;
  font-family: Calibri, sans-serif;
}

.userdetails table {
  border-collapse: collapse;
  width: 100%;
  align-items: center;
  padding-left: 100px;
  padding-right: 0px;
  
}

.userdetails td {
  /* padding: 0.5rem; */
  padding-left: 100px;
  vertical-align: top;
}

.userdetails td:first-child {
  font-weight: bold;
  padding-right: 0.5rem; /* Adds spacing between label and value */
}

.balls {
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;

}


.column1 {
  color: white;
  justify-content:center;
  align-items:center;
  float: left;
  width: 500px;
  padding-bottom:40px;
}

.column2 {
  color: white;
  padding-top: 10px;
  padding-bottom:10px;


}
.row:after {
  content: "";
  display: table;
  clear: both;
  margin-bottom: 50px;
  display:flex;
  flex-direction:column;
}
.topbox {
  padding-top: 50px;
  padding-bottom: 50px;
}
.header {
  text-align: center;

}

#header, #main, #footer {
  padding: 20px;
  background: white;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.head {
  text-align: center;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-family: "Sofia", sans-serif;

}


main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: auto;
  
}

li {
  list-style-type: none;
}

.name {
  text-align: center;
}

.errh1{
  color: white;
  font-size: 100px;
}

.errh2{
  color: white;
  font-size: 40px;
}


.header {
  text-align: center;

}


.head {
  text-align: center;
  color: white;
}



.user-info-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  padding-right: 30px;
  padding-left: 30px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  
}

.user-info-box h1,
.user-info-box h3 {
  margin-top: 0;
  color: #333;
}

.user-info-box p {
  margin: 8px 0;
}

.user-info-box ul {
  padding-left: 20px;
}



.user-info-box button:hover {
  background-color: #0056b3;
}
.errcontainer{
  width:100%;
  height: 100%;
  font-family: "Sofia", sans-serif;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  padding-left: 10px;
  padding-bottom: 50px;
  

}

#user-info-box {

  background: white;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: var(--max-width);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center; /* Centering content */
  

}

#user-info-box:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


.login-link, .register-link {
display: inline-block;
padding: 8px 16px;
margin: 0 10px;
background-color: #007bff;
color: white;
text-decoration: none;
border-radius: 4px;
}

.login-link:hover, .register-link:hover {
background-color: #0056b3;
}

.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}

.alert-success {
color: #3c763d;
background-color: #dff0d8;
border-color: #d6e9c6;
}



label {
font-size: 16px;
margin-bottom: 5px;
/* font-family: Arial, sans-serif; */
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
padding: 8px;
font-size: 16px;
width: 100%;
}






html, body {
margin: 0;
padding: 0;
height: 100%;
font-family: var(--font-main);
}





@keyframes flashHighlight {
  0%   { color: #7e57c2; } /* light yellow */
  25%  { color: transparent }
  50%  { color: #7e57c2; }
  75%  { color: transparent }
  100% { color: #7e57c2; }
}

.profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.profile-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  gap: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: center;
  font-size: 0.95rem;
  min-width: 0;
 
}

.label {
  font-weight: bold;
  color: #444;
  flex-shrink: 0;
}

.value {
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.highlight {
  color: #0066cc;
  font-weight: 600;
}
.profile-container {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2rem;
  background-color: #fafafa;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.info-row.single {
  display: block; /* Override grid for single rows */
  width: 100%;
}

.info-item.full-width {
  width: 100%;
}

#xp-progress-container {
  /* margin: 2rem auto; */
  margin-bottom: 2rem;
  padding: 1rem 2rem;
  /* max-width: 800px; */
  width: 40vw;
  max-width: 100%;
  background-image: var(--primary-gradient);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

#xp-progress-container.visible {
  opacity: 1;
  transform: translateY(0);
}

#xp-progress-container h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
}
#XPOverTime {
  width: 100%;
  height: auto;
  max-width: 1000px;
}

.hidden {
  display: none !important;
}

.skills-chart {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

svg {
  width: 100%;
  height: auto;
  display: block;
}

.radar-circle {
  fill: none;
  stroke: #ccc;
  stroke-width: 1;
}

.radar-axis {
  /* stroke: #888; */
  stroke: #ffffff;
  stroke-width: 1;
}

.skill-label {
  font-size: 12px;
  fill: #ffffff;
}

.radar-area {
  fill: rgba(51, 198, 254, 0.3);
  stroke: #33C6F4;
  stroke-width: 2;
}

#technical-skills-container {
  /* margin: 2rem auto; */
  padding: 1rem 2rem;
  width: 20vw;
  color: white;
  max-width: 100%;
  background-image: var(--primary-gradient);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  justify-content: center;
  text-align: center;
}

#technical-skills-container h2{
  
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
}


#technology-skills-container {
  /* margin: 2rem auto; */
  padding: 1rem 2rem;
  width: 20vw;
  color: white;
  max-width: 100%;
  background-image: var(--primary-gradient);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  justify-content: center;
  text-align: center;
  
}

#technology-skills-container h2{
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;

}

.skills-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}



.audit-card {
  /* background-color: #fff; */
  background-image: var(--primary-gradient);
  border: 2px solid white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 16px 20px;
  margin: 12px 0;
  transition: 0.3s ease;
  
}

.audit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  
}

.audit-header h3 {
  margin: 0;
  font-size: 1.2rem;
  /* color: #333; */
  color: #ffffff;

}

.audit-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
}

.audit-status.passed {
  background-color: #4CAF50;
}

.audit-status.failed {
  background-color: #F44336;
}

.audit-body p {
  margin: 6px 0;
  font-size: 0.95rem;
  /* color: #555; */
  color: white;
  
}

#user-audits-container {
  text-align: center;
  background-image: var(--primary-gradient);
    display: grid;
    gap: 16px;
  margin-top: 12px;
width: 40vw;
  max-width: 100%;
  color:white;
    border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 16px 20px;
  margin: 12px 0;
  transition: 0.3s ease;
  
}

.audit-container.usrAudits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .audit-container.usrAudits {
    grid-template-columns: 1fr;
  }
}

.usrAudits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.audit-section {
  margin-bottom: 24px;
}