/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter",'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-red: #e63946;
    --primary-blue: #457b9d;
    --primary-white: #f1faee;
    --dark-blue: #1d3557;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #fff;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --navbar-height: 79px;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

a {
    text-decoration: none;
    color: inherit;
}



/* Container */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    color: var(--dark-text);
    transition: width 0.3s ease;
    overflow-x: hidden;
    position: fixed;
    height: 100%;
    z-index: 10;
    border-right: 1px solid rgb(211, 208, 208);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.logo {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgb(212, 209, 209);
    height: 80px;
}

.logo-img {
    border-radius: 10px;
    margin-left: -25px;
    object-fit: cover;
}

.sidebar.collapsed .logo h2 {
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 5px 0;
    border-left: 4px solid transparent;
}

.sidebar-item {
    position: relative;
}

.sidebar-item .notificaton-count {
    position: absolute;
    top: 0;
    left: 10px;
    background: red;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 9999px;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-red);
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--primary-white);
}

.sidebar-item a {
    display: flex;
    align-items: center;
}

.sidebar-item i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar.collapsed .sidebar-item span {
    display: none;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Navbar Styles */
.navbar {
    height: var(--navbar-height);
    background-color: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 5;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left .search-container {
    display: flex;
    align-items: center;
    background: #dad9d9;
    padding: 12px;
    border-radius: 8px;
    width: 380px;
    margin-left: -30px;
    margin-right: 20px;
}

.task-button{
    width: 150px;
    padding: 10px;
    border-radius: 25px;
    border: none;
    color: white;
    background-color: rgb(44, 131, 245);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.task-button:hover{
    background-color:  rgb(44, 131, 205);
}

.search-icon {
    color: #888;
    margin-right: 8px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.toggle-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-button {
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-icons .icon {
    font-size: 18px;
    color: #777;
    margin: 0 10px;
    cursor: pointer;
}

.nav-discription{
    margin-left: 15px;
    margin-right: 15px;
    text-align: right;
}

.nav-name{
    font-weight: bold;
}
.nav-occupation{
    color: rgb(173, 169, 169);
}
.login-btn {
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.login-btn:hover {
    background-color: var(--primary-blue);
    color: var(--light-text);
}

.register-btn {
    background-color: var(--primary-red);
    color: var(--light-text);
}

.register-btn:hover {
    background-color: #d62638;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background-color: var(--light-bg);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 20;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-content.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-content i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px;
}

.welcome-section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.welcome-section h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.welcome-section p {
    color: #666;
    font-size: 16px;
}

.bannerModal2{
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    row-gap: 8px;
    padding: 20px;
    box-sizing: border-box;
}

/* Banner Slider Styles */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;

}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 15px;
    margin-left: 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    min-width: 48%; /* Show two items side by side with some spacing */
    flex: 0 0 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: white;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #4c4cdd;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-arrow {
        width: 32px;
        height: 32px;
    }
}
/* Services Grid Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 24px;
    justify-items: center;
}

.service-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 120px;
    margin-bottom: 8px;
}

.service-item p {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

 /* Popup Banner Styles */
 .popup-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    width: 75%;
    max-width: 900px;
    max-height: 500px;
    position: relative;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-content img {
    width: 100%;
    height: auto;
    display: block;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Edit Banner Button & Modal Styles */
.admin-banner-edit {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
}

#edit-banner-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

#edit-banner-btn:hover {
    background-color: #45a049;
}

.banner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

.modal-content input[type="text"],
.modal-content input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#image-preview {
    max-width: 100%;
    margin: 10px 0;
    display: none;
    border-radius: 5px;
}

.upload-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.upload-label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#save-banner-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#save-banner-btn:hover {
    background-color: #45a049;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.tab.active {
    background-color: #4CAF50;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

 .crawler-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30px;
            color: white;
            z-index: 1000;
            overflow: hidden;
            display: flex;
            align-items: center;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            border-top: 2px solid #4CAF50;
        }

        .crawler-text {
            white-space: nowrap;
            font-weight: 500;
            animation: crawl 30s linear infinite;
            padding-left: 100%;
            font-family: 'Inter', sans-serif;
        }

        @keyframes crawl {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-100%);
            }
        }

        .crawler-icon {
            position: absolute;
            left: 15px;
            font-size: 18px;
            color: #4CAF50;
            z-index: 10;
        }

        .crawler-controls {
            position: absolute;
            right: 15px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .crawler-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 5px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.3s;
        }

        .crawler-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Emergency alert styles */
        .crawler-emergency {
            background: linear-gradient(135deg, #dc3545, #c82333) !important;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        /* Adjust main content to account for crawler */
        .main-content {
            padding-bottom: 60px;
        }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }

    .sidebar-item span, .logo h2 {
        display: none;
    }

    .sidebar:hover {
        width: var(--sidebar-width);
    }

    .sidebar:hover .sidebar-item span,
    .sidebar:hover .logo h2 {
        display: inline;
    }
}

@media (max-width: 768px) {

    .navbar h2 {
        display: none;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
        position: fixed;
        z-index: 999;
    }

    .sidebar.collapsed {
        width: 0;
    }

    .sidebar.active {
        width: var(--sidebar-width);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.expanded {
        margin-left: 0;
    }

}
