@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    margin: 0;
    background: url('tech-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  
/* Adăugăm linii digitale și elemente conectate */
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    z-index: -1;
}

.teacher-list {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    justify-content: center; /* Center items */
    margin-top: 100px; /* Adjusted margin for fixed bar height */
    margin-left: 300px; /* Adjusted margin for sidebar width */
}

.teacher-list ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    justify-content: center; /* Center items */
    width: 80%; /* Increased width for the teacher list */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teacher-list li {
    margin: 10px;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

.sidebar {
    display: flex;
    flex-direction: column; /* Aliniere verticală */
    justify-content: space-between;
    width: 260px; /* Set width for the sidebar */
    background: rgba(248, 249, 250, 0.9);
    padding: 15px; /* Padding for the sidebar */
    position: fixed; /* Fix the sidebar to the left */
    top: 50px; /* Position below the fixed bar */
    left: 0; /* Align to the left */
    height: calc(100% - 80px); /* Full height minus the fixed bar */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.sidebar select {
    width: 100%; /* Full width for the dropdown */
    padding: 10px; /* Padding for the dropdown */
    border: 1px solid #ccc; /* Border for the dropdown */
    border-radius: 5px; /* Rounded corners */
}

/* Responsive adjustments */
@media (max-width: 1500px) {
    .teacher-list li {
        flex: 1 1 calc(50% - 20px); /* 2 items per row */
        max-width: calc(50% - 20px); /* 2 items per row */
    }
}

@media (max-width: 1100px) {
    .teacher-list li {
        flex: 1 1 100%; /* 1 item per row */
        max-width: 100%; /* 1 item per row */
    }
}

.teacher-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 20px;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.teacher-icon {
    font-size: 32px;
    background-color: #e4e4ff;
    color: #4c4cff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.teacher-subject {
    color: #6c63ff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.teacher-card .profile-btn {
    background-color: #5a4bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.teacher-card .profile-btn:hover {
    background-color: #4435e6;
}



.go-to-top-btn {
    position: fixed;
    bottom: 20px; /* Poziționează butonul la 20px de jos */
    right: 20px;  /* Poziționează butonul la 20px de dreapta */
    background-color: #4CAF50; /* Culoare verde */
    color: white;
    border: none;
    border-radius: 50%; /* Buton rotund */
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Efect de umbră */
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Inițial invizibil */
    transform: translateY(100px); /* Inițial plasat mai jos */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* Asigură că butonul este deasupra altor elemente */
  }
  
  /* Efect când butonul este vizibil și "float up" */
  .go-to-top-btn.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Efect la hover */
  .go-to-top-btn:hover {
    background-color: #45a049; /* Schimbă culoarea la hover */
    transform: scale(1.1); /* Mărește butonul la hover */
  }
  
  /* Efect la click */
  .go-to-top-btn:active {
    transform: scale(0.95); /* Micșorează butonul la click */
  }