
/*----------------index---------------------*/
body {
            /*font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding-bottom: 70px;*/


            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            display: flex;
            flex-direction: column;
        }

        .header {
            background: #343a40;
            /*color: white;
            text-align: center;
            padding: 20px 0;*/

            /*background-color: #333;
            color: #fff;
            padding: 10px 0;
            text-align: center;*/


/*            background-color: #333;*/
            color: #fff;
            padding: 10px 20px;
            text-align: center;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header img {
            max-height: 50px;
            vertical-align: middle;
        }

        .header h1 {
            display: inline-block;
            margin-left: 10px;
        }

        .welcome-message {
            background: #007bff;
            color: white;
            text-align: center;
            padding: 20px 0;
        }

        .carousel-item {
            display: none; /* Hide all carousel items by default */
            padding: 10%;
            background:none;

        }

        .carousel-item.active {
            display: block; /* Show only the active carousel item */
        }

        .carousel-inner {
            overflow: hidden; /* Hide overflow to ensure only one item is shown at a time */
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            display: none; /* Hide default carousel control icons */
        }

        .carousel-indicators {
            display: none; /* Hide carousel indicators */
        }

        .functionality {
            background-color: #f8f9fa;
            padding: 30px 0;
            text-align: center;
        }

        .functionality h2 {
            margin-bottom: 20px;
        }

        .functionality-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }

        .functionality-item {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 20px;
            margin: 10px;
            flex: 0 1 calc(45% - 20px);
            max-width: calc(45% - 20px);
        }

        .functionality-item h3 {
            margin-bottom: 10px;
        }

        .footer {
            background: #343a40;
            color: white;
            text-align: center;
            padding: 10px;
            width: 100%;
            position: fixed;
            bottom: 0;
        }

        /* Media query for smaller screens */
        @media (max-width: 767px) {
            .functionality-list {
                flex-direction: column;
                align-items: center;
            }

            .functionality-item {
                width: 90%;
                max-width: none;
            }
        }



/*----------------main-----------------------*/
        header {
            background-color: #333;
            color: #fff;
            padding: 10px 20px;
            text-align: center;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .menu-btn {
            display: none;
            background-color: #333;
            color: #fff;
            padding: 10px;
            cursor: pointer;
            border: none;
            z-index: 1001;
        }
        .header-title {
            flex: 1;
            text-align: center;
        }
        
        .card {
            margin: 10px;
        }
        .profile-card {
            margin-bottom: 20px;
            text-align: center;
        }
        .profile-card .card-body {
            display: flex;
            flex-direction: column;
            align-items: center;
        }


/*---------------------navbar-----------------------*/

        
        nav {
            width: 200px;
            background-color: #333;
            position: fixed;
            height: 100%;
            top: 0;
            left: 0;
            padding-top: 60px;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            margin-top: 10px;
            text-align: center;
        }

        .nav-links {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        .nav-links li {
            margin: 5px 0;
        }
        .nav-links a {
            text-decoration: none;
            color: #fff;
            padding: 10px 20px;
            display: block;
            background-color: #333;
            border: 1px solid #333;
            border-radius: 5px;
            text-align: left;
        }
        .nav-links a:hover {
            background-color: #555;
            border-color: #555;
        }
        .content {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            margin-left: 200px; /* Adjust this value according to the width of your nav */
            box-sizing: border-box;
        }
        .profile-picture {
            border-radius: 50%;
            width: 150px;
            height: 150px;
            object-fit: cover;
            margin-bottom: 20px;
        }
        @media screen and (max-width: 600px) {
            nav {
                position: fixed;
                width: 200px;
                top: 0;
                left: -200px;
                height: 100%;
                transition: left 0.3s;
            }
            nav.show {
                left: 0;
            }
            .content {
                margin-left: 0;
            }
            .menu-btn {
                display: block;
            }
        }
        /* Popup box styles */
        .popup {
            display: none;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        .popup-content {
            background-color: #fefefe;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        }
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }
        #sidebar{
            overflow:auto;
        }

        /*nav li a{
            text-align: left;
        }*/





/*-------------------------register students--------------------------------*/

table {
            width: 100%;
            border-collapse: collapse;
            overflow: auto;
        }
        th, td {
            padding: 8px;
            border-bottom: 1px solid #ddd;
            text-align: left;
        }
        th {
            background-color: #333;
            color: white;
        }
        
        
        nav a {
            text-decoration: none;
            color: #fff;
            padding: 10px 20px;
            display: inline-block;
            background-color: #333;
            border: 1px solid #333;
            border-radius: 5px;
            margin: 5px;
        }
        nav a:hover {
            background-color: #555;
            border-color: #555;
        }
        select {
            padding: 5px;
            margin: 5px;
        }
        @media screen and (max-width: 600px) {
            .profile-picture {
                width: 100px;
                height: 100px;
            }
            .content {
                flex-direction: column;
            }
        }

        .sticky-first-column td:first-child {
            position: sticky;
            left: 0;
            background-color: #f4f4f4;
            z-index: 1; /* Ensure it's above other cells */
        }

        @media screen and (min-width: 1200px){
            table{
                margin-left: 17%;
            }
        }

/*-------------------- teacherpanel------------------------------------*/

        header {
            background-color: #333;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }*
        .content {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }
        .profile-picture {
            border-radius: 50%;
            width: 150px;
            height: 150px;
            object-fit: cover;
            margin-bottom: 20px;
        }
        nav {
            text-align: center;
            margin-top: 20px;
        }
        nav a {
            text-decoration: none;
            color: #fff;
            padding: 10px 20px;
            display: inline-block;
            background-color: #333;
            border: 1px solid #333;
            border-radius: 5px;
            margin: 5px;
        }
        nav a:hover {
            background-color: #555;
            border-color: #555;
        }
        select {
            padding: 5px;
            margin: 5px;
        }
        @media screen and (max-width: 600px) {
            .profile-picture {
                width: 100px;
                height: 100px;
            }
            .content {
                flex-direction: column;
            }
        }
        /* Popup box styles */
        .popup {
            display: none;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        .popup-content {
            background-color: #fefefe;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        }
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }
        #sidebar{
            oveflow:auto;
        }

        main{
            overflow: auto;
        }
/*--------------view data-----------------------*/

 table {
            width: 100%;
            border-collapse: collapse;
            overflow: auto;
        }

        main{
            overflow: auto;
        }
        th, td {
            padding: 8px;
            border-bottom: 1px solid #ddd;
            text-align: left;
        }
        th {
            background-color: #333;
            color: white;
        }

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }
        header {
            background-color: #333;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }
        .content {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }
        .profile-picture {
            border-radius: 50%;
            width: 150px;
            height: 150px;
            object-fit: cover;
            margin-bottom: 20px;
        }
        nav {
            text-align: center;
            margin-top: 20px;
        }
        nav a {
            text-decoration: none;
            color: #fff;
            padding: 10px 20px;
            display: inline-block;
            background-color: #333;
            border: 1px solid #333;
            border-radius: 5px;
            margin: 5px;
        }
        nav a:hover {
            background-color: #555;
            border-color: #555;
        }
        select {
            padding: 5px;
            margin: 5px;
        }
        @media screen and (max-width: 600px) {
            .profile-picture {
                width: 100px;
                height: 100px;
            }
            .content {
                flex-direction: column;
            }
        }

        .sticky-first-column td:first-child {
            position: sticky;
            left: 0;
            background-color: #f4f4f4;
            z-index: 1; /* Ensure it's above other cells */
        }
        @media screen and (min-width: 600px){
            table{
                margin-left: 17%;
                overflow: auto;
            }
        }