body {
    font-family: Arial, sans-serif;
    background-color: #ececec;
}
.dashboard-container {
    width: 100%;
    margin: auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}
/* Ensure the navbar doesn't exceed the viewport width */
.navbar {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box; /* Ensures padding & border don't add extra width */
    overflow: hidden; /* Prevents content from overflowing */
}

/* If using flexbox, prevent unwanted stretching */
.navbar * {
    flex-shrink: 1; /* Prevents elements from forcing extra width */
    max-width: 100%;
}

/* If the body has an unwanted horizontal scrollbar */
body {
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
}

.container-fluid.main-pg {
    margin-top: 70px;
}
.left-section, .right-section {
    flex: 1;
   
    padding: 20px;
    border-radius: 10px;
    
}
.profile-section {
    display: flex;
    align-items: center;
    
    padding: 20px;
    border-radius: 10px;
   
}

.text-section{
    padding-left: 20px;
}
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 20px;
}
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.progress-bar-container i {
    font-size: 24px;
    color: blue;
}
.stars i {
    color: gold;
}
.notes-section, .credit-section, .history-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.honor-bg{
    background-color: #e9eaef;
}

.rating-section {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.rating-stars {
    font-size: 18px;  /* Bigger stars */
    font-weight: bold;
    color: #f4b400;  /* Golden star color */
}
.navbar, .container {
    overflow: visible !important;
}


.rating-score {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.validation-text {
    font-size: 14px;
    color: #666;  /* Slightly muted gray text */
}

.upload-btn {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: white;
    transition: all 0.2s ease-in-out;
}

.upload-btn:hover {
    background-color: #e0e0e0;
}

.progress-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 10px;
    background: lightgray;
    border-radius: 5px;
    margin: 50px auto;
}

.progress-bar {
    position: absolute;
    height: 100%;
    width: 100%;
    background: blue;
    border-radius: 5px;
}

.shield {
    position: absolute;
    left: 75%;
    top: -25px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: blue;
}

.shield svg {
    position: absolute;
    width: 73px;
    height: 73px;
    z-index: 1;
}

.shield span {
    position: relative;
    z-index: 2;
    font-size: 18px;
}

.percentage {
    position: absolute;
    right: 0;
    top: -18px;
    color: blue;
    font-weight: 800;
    left: 290px;
}

/*---medals section-----*/
.medals-container { /* White background */
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: start;
    
    gap: 15px;
}

.medal-icon {
    font-size: 24px; /* Adjust icon size */
    color: #A0A5B1; /* Gold color */
}
.forgot{
    text-align: end;
}


/* chart section */

.honor-score-container {
    width: 100%;
    max-width: 800px; /* Adjust width to match Honor Note section */
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.chart-container {
    position: relative;
    height: 300px;
}

.toggle-buttons {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 5px 10px;
    justify-content: center;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 5px 12px;
    margin: 0 2px;
    font-size: 14px;
    font-weight: bold;
    color: #7d7d7d;
    cursor: pointer;
    border-radius: 50%;
}

.toggle-btn.active {
    background: white;
    color: black;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #7d7d7d;
    cursor: pointer;
    padding: 5px 10px;
}
.honor-buttons{
        text-align: right !important;
        display: flex;
        justify-content: end;
}

/* right side panel css*/
.button-group {
    display: flex;
    background: #e0e0e0;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 15px;
    justify-content: space-around;
}
.button-group button {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #888;
}
.button-group button.active {
    background: white;
    font-weight: bold;
    color: black;
    width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.button-group button i {
    margin-right: 5px;
}


.message-item {
    display: flex;
    align-items: start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius: 10px;
}
.message-item:last-child {
    border-bottom: none;
}
.message-item i {
    font-size: 20px;
    margin-right: 10px;
}
.text-content {
    flex-grow: 1;
}
.name {
    font-weight: bold;
}
.title {
    color: #555;
    font-weight: 700;
    font-size: 15px;
    margin: 0px;
    padding-top: 5px;
    font-family: "poppins",sans-serif;
}
.dropdown-menu[data-bs-popper] {
    top: 100%;
    left: -160px;
    margin-top: var(--bs-dropdown-spacer);
    max-width: 600px;
}

p.name{
    margin-bottom: 0px;
}

.side-heading{
    padding: 0px;
    margin: 0px;
}
.comments {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    margin-right: 20px;
}


/* Responsive Navbar */
/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-container {
        flex-direction: column;
    }
    .left-section, .right-section {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    .profile-section .profile-img {
        margin-bottom: 10px;
    }
    .progress-container {
        justify-content: center;
    }
    .rating-section {
        flex-direction: column;
        text-align: center;
    }
    .rating-stars, .validation-text {
        margin-bottom: 10px;
    }
    .honor-bg {
        flex-direction: column;
        text-align: center;
    }
    .message-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row ;
        text-align: center;
    }
    .medals-container {
        padding: 15px;
        border-radius: 10px;
        display: flex ;
        justify-content: start;
        gap: 15px;
        flex-direction: row-reverse;
        flex-wrap: wrap;
    }
    .percentage {
        position: absolute;
        right: 0;
        top: -18px;
        color: blue;
        font-weight: 800;
        left: 250px;
    }
    /* .search-bar {
        width: 100%;
        margin-bottom: 10px;
    } */
    .forgot{
        text-align: start;
        margin-bottom: 10px;
    }
    .navbar-brand img {
        height: 40px;
    }
    .profile-section h3 {
        font-size: 18px;
    }
    .progress-text {
        font-size: 14px;
    }
    .rating-section {
        padding: 10px;
    }
    .honor-score-container h3 {
        font-size: 16px;
    }
    .toggle-buttons button {
        padding: 5px;
        font-size: 12px;
    }
    .dropdown-menu[data-bs-popper] {
        top: 100%;
        left: -160px;
        margin-top: var(--bs-dropdown-spacer);
        max-width: 600px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 10px;
    }
    .button-group {
        flex-direction: column;
        text-align: center;
    }
    .button-group button {
        width: 100%;
        margin-bottom: 5px;
    }
    .profile-section {
        padding: 10px;
    }
    .rating-section, .honor-bg, .medals-container {
        padding: 10px;
    }
    .message-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 320px) {
    .navbar-brand img {
        height: 30px;
    }
    .profile-section h3 {
        font-size: 16px;
    }
    .progress-text {
        font-size: 12px;
    }
    .rating-section, .honor-bg {
        padding: 5px;
    }
    .button-group button {
        font-size: 12px;
    }
    .message-item {
        font-size: 12px;
    }

    @media (max-width: 768px) {
        .dashboard-container {
            flex-direction: column;
        }
        .left-section, .right-section {
            width: 100%;
        }
        .navbar-collapse{
            text-align: start;
        }
        .profile-section {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .progress-container {
            flex-direction: column;
            align-items: center;
        }
        .rating-section {
            flex-direction: column;
            text-align: center;
        }
        .honor-bg {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }
        .medals-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }
        .medal-icon {
            font-size: 20px;
        }
        .honor-score-container {
            text-align: center;
        }
        .toggle-buttons {
            justify-content: center;
        }
        .button-group {
            flex-wrap: wrap;
            justify-content: center;
        }
        .message-container {
            padding: 10px;
        }
        .message-item {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
    }
    
    @media (max-width: 480px) {
        .profile-img {
            width: 60px;
            height: 60px;
        }
        .progress-text {
            font-size: 12px;
        }
        .stars {
            font-size: 16px;
        }
        .upload-btn {
            font-size: 14px;
            padding: 5px 10px;
        }
        .honor-bg p {
            font-size: 14px;
        }
        .btn {
            font-size: 14px;
        }
        .medal-icon {
            font-size: 16px;
        }
        .message-item {
            padding: 10px;
        }
    }

    
    @media (max-width: 320px) {
        .rating-section {
            flex-direction: column;
            text-align: center;
        }
        .rating-stars {
            justify-content: center;
            width: 100%;
            margin-bottom: 10px;
        }
        .validation-text {
            font-size: 12px;
            text-align: center;
            display: block;
            margin-bottom: 5px;
        }
        .upload-btn {
            width: 100%;
            font-size: 12px;
            padding: 8px 0;
        }
        .title{
            font-size: 12px;
        }
    }
    @media (max-width: 320px) {
        @media (max-width: 768px) {
            .left-section, .right-section {
                width: 100%;
                padding: 0;
            }
        }
    }

    @media (max-width: 320px) {
        .rating-section {
            flex-direction: column;
            text-align: center;
        }
        .rating-stars {
            justify-content: center;
            width: 100%;
            margin-bottom: 10px;
        }
        .validation-text {
            font-size: 12px;
            text-align: center;
            display: block;
            margin-bottom: 5px;
        }
        .upload-btn {
            width: 100%;
            font-size: 14px;
            padding: 8px 0;
        }
        
        /* Honor Note Section Fix */
        .honor-score-container {
            width: 100%;
            overflow-x: auto;
            padding: 10px;
        }
        .chart-container {
            width: 100%;
            min-width: 280px;
        }
        .shield{
            left: 150px;
        }
        .percentage{
            left: 233px;
            top: -13px;
        }
        .auth-container{
            margin-top: 100px;
        }
    }
}

/* register page code */

.upload-container {
    max-width: 700px;
    margin: 50px auto;
    text-align: center;
    padding: 20px;
    border: 2px dashed #007bff;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-left: 0px;
}
/* .video-icon {
    font-size: 50px;
    color: #007bff;
}
video {
    width: 100%;
    margin-top: 20px;
    display: none;
} */
/*login code*/


.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    
}
.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}
.social-login button {
    width: 100%;
    margin-bottom: 10px;
}
.toggle-password {
    cursor: pointer;
}

/* forgot-1 code */

.form-container {
    max-width: 400px;
    padding: 20px;
}
.brand img {
    width: 200px;
    margin-bottom: 20px;
}
.back-to-login a {
    color: #6c757d;
    text-decoration: none;
}
.form-group {
    position: relative;
    margin-bottom: 20px;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    outline: none;
    background-color: #fff;
}
.form-group label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    padding: 5px;
    margin-left: 10px;
    font-size: 18px;
}
.form-group input:focus + label,
.form-group input:valid + label {
    top: 0;
    left: 5px;
    font-size: 16px;
    color: #007bff;
    
}
.btn-primary {
    background-color: #3b82f6;
    border: none;
    padding: 10px;
    border-radius: 5px;
}
.social-login a {
    width: 100px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin: 0 5px;
    font-size: 18px;
}
.image-placeholder img {
    max-width: 100%;
    border-radius: 10px;
}


.video-section {
            background: white;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            width: 100%;
            max-width: 350px;
            position: relative;
        }
        .upload-btn {
            background: linear-gradient(135deg, #007bff, #00c6ff);
            border: none;
            padding: 10px;
            width: 100%;
            color: white;
            font-size: 16px;
            border-radius: 10px;
            cursor: pointer;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .upload-btn:hover {
            background: linear-gradient(135deg, #0056b3, #0095ff);
        }
        .video-preview {
            margin-top: 15px;
            display: none;
            position: relative;
            max-width: 100%;
            height: auto;
        }
        video {
            width: 100%;
            border-radius: 10px;
        }
        .icon-container {
            background: rgba(0, 123, 255, 0.1);
            padding: 10px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            animation: bounce 1.5s infinite;
            transition: all 0.3s ease-in-out;
        }
        .icon-container i {
            color: #007bff;
            font-size: 28px;
        }
        .enlarge-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
        }
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        /* landing code */
        input {
            width: 300px;
            padding: 10px;
            font-size: 16px;
        }
        button {
            padding: 10px;
            font-size: 16px;
            cursor: pointer;
        }

        /* .search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        
        .search-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .search-box {
            width: 60%;
            max-width: 600px;
            position: relative;
            text-align: center;
        }
        
        .search-box input {
            width: 100%;
            padding: 15px;
            border: none;
            font-size: 1.5rem;
            border-radius: 5px;
            outline: none;
            text-align: center;
        } */
        
        .close-btn {
            position: absolute;
            top: -50px;
            right: 0;
            font-size: 30px;
            color: white;
            cursor: pointer;
        }
        /* .search-container {
            padding-right: 50px;
        } */

        a.dropdown-item {
            border-bottom: solid 1px blue;
            padding: 10px;
            font-weight: 500;
        }
        ul.dropdown-menu.show {
            border: solid 1px blue;
            border-radius: 0px;
            padding: 0px;
        }
        .pass{
            margin-top: 90px;
            margin-bottom: 20px;
        }