﻿@import url("../../fonts/red-hat-font/redHat.css");

:root {
    --primary-red: #FF0000;
    --dark-red: #8b0000;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --navbar-height: 4rem;
}

/* Global font family - Red Hat Display */

* {
    font-family: var(--font-family) !important;
}

body {
    font-family: var(--font-family) !important;
}

/* Override Bootstrap font families */

h1, h2, h3, h4, h5, h6, p,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.lead,
.navbar-brand,
.nav-link,
.btn,
.form-control,
.card-title,
.card-text,
.fs-1, .fs-2, .fs-3, .fs-4, .fs-5, .fs-6 {
    font-family: var(--font-family) !important;
}

.navbar {
    height: 10vh;
}

.navbar-brand {
    color: white !important;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.nav-icon-img {
    width: 24px;
    height: 24px;
    margin: 0 25px;
    cursor: pointer;
    transition: opacity 0.3s;
}

    .nav-icon-img:hover {
        opacity: 0.7;
    }

.navbar-nav .nav-link {
    color: white !important;
}

.user-profile {
    width: 51px;
    height: 51px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 10px;
    font-size: x-large;
}

.evaluation-bar {
    background-color: var(--primary-red);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.announcement-popup {
    z-index: 3;
}

.notification-card {
    background-color: rgba(230, 230, 230, 0.28);
    border-radius: 12px;
    color: #ffffff;
}

.announcement-icon {
    width: 20px;
    height: 20px;
}

.navbar-toggler {
    padding: 4px 8px;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25) !important;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23661520' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.2em;
    height: 1.2em;
}

/* Make this specific navbar use fluid width and less horizontal padding */
.custom-navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}


/* Add spacing between left (nav links) and right (icons) groups */
.custom-navbar .navbar-collapse {
    justify-content: space-between;
}

/* Ensure icons don’t get too close on small screens */
.custom-navbar .d-flex.gap-4 {
    gap: 1.5rem !important;
}

/* Reduce padding further on smaller screens */
@media (max-width: 992px) {
    .custom-navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/*Cookies dhe Ngjarjet ellipse jettes style*/
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 130px;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cookie-consent {
        position: fixed;
        bottom: -100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 240px;
        max-width: 900px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
        border-radius: 16px;
        padding: 1.5rem;
        z-index: 1000;
        transition: bottom 0.5s ease-in-out;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

        .cookie-consent.show {
            bottom: 10px;
        }
}

.cookie-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}

.cookie-text {
    flex: 1;
    padding-right: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.cookie-consent.show {
    bottom: 0px;
}

.cookie-text h5 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.cookie-text p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.95rem;
}

.cookie-text a {
    color: #4a6bff;
    text-decoration: none;
}

cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn.accept {
    background: #646464;
    color: white;
}

.cookie-btn.decline {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn.accept:hover {
    background: #4a4a4a;
    color: white;
}

.cookie-btn.decline:hover {
    background: #ebebeb;
    color: #4a4a4a;
    border: 1px solid #4a4a4a;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-text {
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

.right-side-menu {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

    .right-side-menu.active {
        right: 0;
    }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #043065;
    background-color: #043065;
}

    .menu-header h1 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: #fff;
    }

.close-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

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

.menu-content {
    padding: 15px 20px;
}

.menu-section {
    margin-bottom: 25px;
}

    .menu-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        color: #2c3e50;
        font-weight: 600;
        padding-bottom: 5px;
        border-bottom: 1px solid #eee;
    }

.menu-subsection {
    margin-bottom: 20px;
}

    .menu-subsection h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        color: #34495e;
        font-weight: 500;
        display: flex;
        align-items: center;
    }

.menu-icon {
    margin-right: 8px;
    font-size: 1rem;
}

.menu-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .menu-items li {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        word-wrap: break-word;
        color: #2F6796;
    }

        .menu-items li:hover {
            color: #10354A;
            text-decoration: underline;
        }

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.menu-subsection h3 {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #34495e;
}

    .menu-subsection h3 .icon-wrapper {
        margin-right: 8px;
    }

.title-life {
    color: #0B2432;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 22px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .right-side-menu {
        width: 80%;
        right: -80%;
    }
}

@media (max-width: 480px) {
    .right-side-menu {
        width: 90%;
        right: -90%;
    }

    .menu-header {
        padding: 15px;
    }

    .menu-content {
        padding: 10px 15px;
    }

    .menu-items li {
        padding: 8px 12px;
    }
}

/* Search Container */
.search-container-life {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.search-input-life {
    width: 50%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

    .search-input-life:focus {
        outline: none;
        border-color: #053D4F;
        box-shadow: 0 0 0 2px rgba(5, 61, 79, 0.2);
    }

.search-icon-life {
    position: absolute;
    right: 26rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .search-icon-life svg {
        width: 20px;
        height: 20px;
    }


/* Custom Language Dropdown Styles - No Bootstrap Overrides */
.custom-language-dropdown {
    position: relative;
}

    .custom-language-dropdown .dropdown-toggle {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        border: none;
        background: transparent;
        transition: all 0.3s ease;
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
    }

        .custom-language-dropdown .dropdown-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

    /* Custom dropdown menu */
    .custom-language-dropdown .custom-dropdown-menu {
        min-width: 120px;
        background: #1D1D1D; /* Normal background color */
        border: 1px solid #444;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        padding: 8px;
        margin-top: 8px;
        transform: translateX(-20px); /* Move more left for web */
        position: absolute;
        z-index: 1000;
        display: none;
    }

        .custom-language-dropdown .custom-dropdown-menu.show {
            display: block;
        }

/* Custom dropdown items */
.custom-language-option {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    text-decoration: none;
}

    /* Hover state for entire row including flag */
    .custom-language-option:hover {
        background: #242424; /* Hover background color */
        color: #ffffff;
    }

/* Flag styling */
.custom-flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}

/* Mobile specific styles */
@media (max-width: 991.98px) {
    .custom-language-dropdown .custom-dropdown-menu {
        min-width: 130px;
        transform: translateX(-25px); /* Even more left on mobile */
        background: #1D1D1D;
    }

    .custom-language-option {
        padding: 8px 10px;
        font-size: 13px;
    }

    .custom-flag-icon {
        width: 18px;
        height: 13px;
    }
}

@media (max-width: 576px) {
    .custom-language-dropdown .custom-dropdown-menu {
        min-width: 120px;
        transform: translateX(-20px);
    }

    .custom-language-option {
        padding: 6px 8px;
    }

    .custom-flag-icon {
        width: 16px;
        height: 12px;
    }
}
