:root{
    --primary-color:#6A1B9A;
    --secondary-color:#9C27B0;
    --accent-color:#4CAF50;
    --text-color:#E0E0E0;
    --background-color:#263238;
    --card-bg-color:#37474F;
    --border-color:#455A64;
    --error-color:#FF5252;
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-color), #1a202c);
    color: var(--text-color);
    line-height: 1.6;
}

.container{
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card{
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border-color)
}

h1,h2,h3{
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

input[type="text"],
input[type="password"]{
    width: calc(100% - 2rem);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #2f3c43;
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="text"]:focus,
input[type="password"]:focus{
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.3);
}

button {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border:none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3 ease, transform 0.2 ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(2px);
}

.error-message {
    color: var(--error-color);
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.hidden {
    display: none !important;
}

.active {
    display:flex;
}

.profile-card {
    position: relative;
    text-align: left;
    max-width: 90%;
    
}
.logout-btn {
    position: absolute;
    top:1rem;
    right: 1rem;
    width:auto;
    padding: 0.5rem 1rem;
    font-size:0.9rem;
    background-color: #B00020
}

.logout-btn:hover {
    background-color: #D32F2F;
}

.profile-section{
    background-color: #2f3c43;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color)

}

.profile-section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.graphs-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
 .graphs-section h2{
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center; 
 }



.graph-container {
    background-color: #2f3c43;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.graph-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

svg{
    background-color: #1A202C;
    border-radius: 8px;
    box-shadow:  inset 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 100% !important;
}

.password-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1rem; /* right padding for the icon */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #2f3c43;
  color: var(--text-color);
  font-size: 1rem;
  box-sizing: border-box;
}

.eye-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.eye-icon:hover {
  opacity: 1;
}

.hidden-path {
  display: none;
}

/* For toggling visibility of the SVG paths */
.hidden-path {
    display: none;
}



/*Media queries*/
@media (min-width:768px) {
    #welcomeMessage {
        position: absolute;
        top:1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size:1.9rem;
    }
    
    .card{
        padding: 3rem;
    }

    .profile-grid {
        display: grid;
        grid-template-columns: repeat(2, 48%);
        gap: 4%;
        margin-top: 2rem;
    }

    h1{
        font-size: 2.5rem;
    }

    button {
        width: 100%;
        font-size: 1.2rem;
        margin: 0 auto;
    }
}