* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /*    background: url('https://images.unsplash.com/photo-1522199755839-a2bacb67c546?auto=format&fit=crop&w=1950&q=80') no-repeat center center fixed;*/
    background: linear-gradient(120deg, rgba(79,172,254,0.7), rgba(0,242,254,0.7)) no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    flex-direction: column;
    justify-content: space-between;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    color: #333;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

    .nav-menu a {
        color: #2c3e50;
        text-decoration: none;
        font-size: 16px;
        transition: transform 0.3s;
    }

        .nav-menu a:hover {
            transform: scale(1.1);
        }

.menu-toggle {
    display: none;
    font-size: 22px;
    color: #2c3e50;
    cursor: pointer;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 60px 20px;
    transition: left 0.3s ease;
    z-index: 2000;
}

    .side-menu a {
        display: block;
        padding: 12px 0;
        color: #2c3e50;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

        .side-menu a:hover {
            background-color: #f5f5f5;
        }

    .side-menu.active {
        left: 0;
    }

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

    .overlay.active {
        display: block;
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-button {
    position: relative;
    font-size: 18px;
    color: #2c3e50;
    cursor: pointer;
}

    .icon-button .badge {
        position: absolute;
        top: -5px;
        right: -8px;
        background: red;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 50%;
    }

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    color: #333;
    min-width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 1000;
    overflow: hidden;
}

    .dropdown-content a {
        padding: 10px;
        display: block;
        text-decoration: none;
        color: #333;
        transition: background 0.2s;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.content {
    flex-grow: 1;
    padding: 0px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

    .card h3 {
        margin-top: 0;
    }

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

.header-left {
    display: flex; /* arrange children in a row */
    align-items: center; /* vertically center items */
    gap: 20px; /* space between items */
}
/* By default, hide mobile logo */
.mobile-logo {
    display: none;
}

/* Hide desktop logo and show mobile logo on small screens */
@media screen and (max-width: 768px) {
    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }
}

.side-menu {
    width: 250px; /* adjust width as needed */
    background-color: white;
    padding: 20px 10px;
}

.side-logo {
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 0;
    text-align: center;
}

/* Optional: make it smaller for mobile */
@media screen and (max-width: 768px) {
    .side-menu {
        width: 205px;
        padding: 10px 5px;
    }

    .side-logo {
        font-size: 1.2em;
    }
}

/* Main container layout */
.main-container {
    display: flex;
    gap: 20px;
    padding: 30px;
}

/* Desktop ad column */
.ads-desktop {
    width: 200px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: fit-content;
}

/* Mobile ads icon */
.ads-mobile {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #2c3e50;
    color: white;
    padding: 12px;
    border-radius: 50%;
    font-size: 20px;
    z-index: 3000;
    cursor: pointer;
}
.scroll-container {
    min-height: 7%;
}
/* Responsive */
@media (max-width: 991px) {
    .main-container {
        flex-direction: column;
        padding: 15px;
    }
    .scroll-container {
        min-height: 4%;
    }
    

    .ads-desktop {
        display: none;
    }

    .ads-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ad container */
.ads-mobile {
    position: fixed;
    bottom: -120px; /* hidden by default */
    right: 20px;
    width: 140px;
    height: 120px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

    /* Icon style */
    .ads-mobile i {
        font-size: 28px;
        color: #555;
    }

    /* Ad text */
    .ads-mobile p {
        font-size: 12px;
        margin-top: 8px;
        color: #333;
    }

    /* Close button */
    .ads-mobile .close-btn {
        position: absolute;
        top: 5px;
        right: 6px;
        cursor: pointer;
        font-size: 12px;
        color: #888;
        font-weight: bold;
    }
.scroll-container {
    width: 100%;
    /*background: #fffae6;
    border: 1px solid #f0e68c;*/
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 10px 0;
    position: relative;
    
}

/* Scrolling text */
.scroll-text {
    display: inline-block;
    padding-left: 100%;
    font-weight: bold;
    color: #333;
    animation: scroll-left 30s linear infinite;
}

/* Keyframes for scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.side-menu {
    display: flex;
    flex-direction: column;
    width: 200px;
    background-color: #fff;
    padding: 10px;
}

.side-logo {
    font-size: 20px;
    font-weight: bold;
    padding: 10px 0;
}

.menu-item {
    position: relative;
}

    .menu-item > a {
        text-decoration: none;
        color: #333;
        padding: 8px 12px;
        display: block;
    }

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 15px; /* indent child links */
}
.submenu1 {
    display: block;
    flex-direction: column;
    padding-left: 15px; /* indent child links */
}
.d-none{
    display:none;
}
.d-block {
    display: block;
}
    .submenu a {
        padding: 6px 12px;
        color: #555;
    }

.menu-item.dropdown:hover .submenu {
    display: flex;
}
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
}

    .tab.active {
        background: #007bff;
        color: white;
    }

.tab-content {
    display: none;
    padding: 10px;
}

    .tab-content.active {
        display: block;
    }

.profile-view p {
    margin: 12px 0;
    font-size: 15px;
}

    .profile-view p strong {
        width: 140px;
        display: inline-block;
    }
.btn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn:hover {
        background: #0056b3;
    }

.profile-pic-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

    .profile-pic-container img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        cursor: pointer;
        border: 2px solid #ccc;
    }

.delete-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
}
.form-group {
    margin-bottom: 15px;
}
.tab[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: bold;
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }
    .w-60{
        width:60%
    }
    .h-60{
        height:60%
    }
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        background: #fff;
        padding: 10px;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 8px 10px;
    }

        td::before {
            content: attr(data-label);
            font-weight: bold;
            flex: 1;
            text-align: left;
            color: #333;
        }

        td span, td {
            flex: 2;
            text-align: right;
            word-break: break-word;
        }
}