﻿/* Resetting margin and padding for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman';
    font-size:15px;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensuring full height */
    background-color:#ffffff;
}



.logo {
    height: 60px;
    margin-right: 10px;
}

.university-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .university-name:hover {
        color: #ede577;
        transform: scale(0.9);
    }

.cashprofile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    width: 100%;
    background-color: #d6e5e5;
    padding: 5px;
    box-sizing: border-box;
    margin-top: 70px; /* To ensure it stays below the fixed header */
    position: fixed;
    top: 0; /* Adjust according to the height of the header */
    z-index: 999; /* Ensure it's above other elements */
}

.cash_sections {
    color: #424242;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    flex: 1;
    margin-right: 0px; /* Default margin for when sidebar is hidden */
    transition: margin-left 0.3s ease; /* Smooth transition */
}

/* Sidebar */
.sidebar {
    background-color: #EDF4F2;
    width: 200px;
    height: calc(100% - 100px); /* Adjust height to avoid overlapping */
    position: fixed;
    top: 100px; /* Matches the header and cash profile height */
    left: 0;
    display: block;
    flex-direction: column;
    padding-top: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
}
    .sidebar .profile-menu {
        margin-bottom: 8px;
    }
.icon {
    font-size: 18px; /* Icon ka size chhota karna */
    width: 25px; /* Fixed width, taki sabhi icons ek line me aaye */
    text-align: center;
}
    .sidebar a {
        padding: 7px 20px;
        text-decoration: none;
        color: #424242;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: background-color 0.3s, color 0.3s;
    }
        .sidebar a:hover {
            color: #007a8e;
            background-color: #d6e5e5;
            transform: scale(1.1);
            border-radius: 30px;
            margin-right:20px;
            margin-left:20px;
           
        }
        .sidebar a i.icon {
            color: #333;
            margin-right: 10px; /* Space between icon and text */
        }


    .sidebar.open {
        display: block;
    }

    .sidebar.closed {
        display: none;
    }
.receipt-menu {
    display: inline-flex;
    align-items: center;
}

    .receipt-menu i {
        margin-right: 15px; /* Adjust the spacing as needed */
    }
/* Toggle icon styles */
.toggle-icon {
    color: black;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    transition: color 0.3s ease;
    margin-left: 10px;
}

    .toggle-icon:hover {
        color: #333;
    }

/* Main content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Adjust based on your content layout */
    text-align: center; /* Optional, for text alignment */
    margin-top:50px;
}

    .main-content.with-sidebar {
        margin-left: 220px; /* When sidebar is visible */
    }

.sidebar.closed + .main-content {
    width: calc(100% - 20px); /* Adjust width when the sidebar is closed */
    margin-left: 0px; /* Center-align for collapsed sidebar */
}


@media screen and (max-width: 768px) {
    .cash_sections {
        font-size: 16px; /* Smaller text for narrow screens */
        text-align: left;
        margin: 0 auto; /* Center horizontally */
    }
    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo {
        height: 40px;
    }

    .sidebar {
        display: none;
    }
        .sidebar.open {
            display: block;
            position: absolute;
            z-index: 1001;
        }


        .sidebar a {
            padding: 10px;
            flex: 1; /* Allow links to spread evenly */
            text-align: center;
        }

    .main-content {
        width: 100%;
        padding: 10px;
        margin: 0 auto;
    }

        .main-content.with-sidebar {
            margin-left: 100%; /* Adjust based on layout requirements */
        }

}
/* Profile Menu Styles */
.profile-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: black;
    /*margin-left: 1px;*/ /* Pushes the dropdown to the right */
    margin-top: -10px;
    font-size: 15px;
}

.profile-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 2px 2px 5px;
    background-color: #c4d5d5;
    border: none;
    width: 200px !important;
}
.profile-button:hover {
    color: #007a8e;
    background-color: #d6e5e5;
    transform: scale(0.9);
}
    .profile-icon {
    width: 25px;
    height: 25px;
    background-color: #6796a9;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.dropdown-icon {
    margin-left:auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

    .dropdown-icon.rotate {
        transform: rotate(-90deg);
    }

.dropdown-content {
    position: absolute; /* Position absolute to make it relative to the profile-menu */
    top: 100%; /* Position directly below the button */
    left: 0;
    display: none; /* Initially hidden */
    background-color: #F7F9F9;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%; /* Match the button width */
    z-index: 10;
    padding: 10px 5px;
    border-radius: 4px;
}

    .dropdown-content a {
        display: block;
        padding: 10px 20px;
        text-decoration: none;
        color: #333;
        transition: background-color 0.3s;
    }

        .dropdown-content a:hover {
            background-color: #f0f0f0;
        }

    .dropdown-content p {
        margin: 5px 10px;
    }
/*Submenu Dropdown CSS*/
/* Hide dropdown container initially */
.dropdown-container {
    display: none;
    background-color: #F7F9F9;
    padding-left: 15px;
}

.dropdown-btn.active + .dropdown-container {
    display: block;
}

.dropdown-btn i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.dropdown-btn.active i:last-child {
    transform: rotate(-90deg);
}



