@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@100;200;300;400;500&family=Poppins:wght@600&display=swap');

:root {
    --box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    --primary-color: #333;
    --color-info-dark: #7d8da1;
    --white: rgb(253, 255, 239);
    --color-back: rgb(249, 249, 249);
    --transition: 0.3s all linear;
    --color-light: rgb(247, 249, 255);
    --blue: rgb(6, 103, 188);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: poppins, sans-serif;
    font-size: 0.88rem;
    background: var(--color-back);
    width: 100vw;
    height: 100vh;
    font-size: 0.88rem;
    /* overflow: hidden; */
}

a {
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

h1 {
    font-weight: 800;
    font-size: 1.8rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-weight: 800;
    font-size: 0.87rem;
}

h4 {
    font-weight: 800;
    font-size: 0.8rem;
}

h5 {
    font-size: 0.77rem;
}

small {
    font-size: 0.75rem;
}

.text-muted {
    color: var(--color-info-dark);
}

.primary {
    color: var(--primary-color);
}

/* Landing Page Navbar */
#navbar {
    display: flex;
    justify-content: space-between;
    margin: auto;
    max-width: 1200px;
    padding: 20px;
}

.top-nav-header {
    /* box-shadow: rgba(100, 100, 111, 0.208) 0px 3px 24px 0px; */
    background-color: white;
    border-bottom: 1px solid gainsboro;
    position: fixed;
    width: 100%;
    z-index: 2;
}

#navbar h2 {
    color: #333;
}

#navbar ul {
    display: flex;
    list-style: none;
    margin-top: 4px;
}

#navbar ul li a {
    color: rgb(54, 54, 54);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    transition: var(--transition);
}

#navbar ul li a:hover {
    color: rgb(46, 46, 43);
}

#navbar ul li {
    font-size: 18px;
    margin: 0 8px;
}

.dropdown {
    position: relative;
    display: inline-block;
    color: rgb(54, 54, 54) !important;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    padding: 12px 0;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}


.dropdown-container {
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 10px;
}

.dropdown-list {
    display: flex;
    flex-direction: column;
}

.dropdown-list ul {
    width: 100%;
}

.dropdown-list li {
    width: 100%;
    margin: 0 !important;
    transition: 0.3s all linear;
    list-style: none;
}

.dropdown-list li a {
    width: 100%;
    padding: 10px;
    display: block;
    font-size: 15px;
    color: #5a5a5a !important;
}

.dropdown-list li:hover {
    padding-left: 20px;
    background-color: rgb(242, 241, 241);
}

.dropdown-list li:last-child:hover {
    padding-left: 20px;
}

.dropdown-list li:last-child {
    background-color: black;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 10px;

}

.dot-menu .dropdown-list li:last-child {
    background-color: rgb(199, 8, 8);
}

.dot-menu .dropdown-list li a {
    color: #333;
}

.dot-menu .dropdown-list li {
    font-size: 15px;
}

.dot-menu .dropdown-content {
    right: 10px;
}

.container {
    display: flex;
    margin: 0 auto;
    /* overflow: hidden; */
}

/* Sidebar */
#sidebar {
    height: 100vh;
    background-color: white;
    position: fixed;
    width: 270px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    transition: var(--transition);
    z-index: 1;
}

#sidebar .top {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
}

#sidebar .logo {
    text-align: center;
    width: 100%;
}

#sidebar .top i {
    font-size: 35px;
}

#sidebar .close {
    color: rgb(147, 8, 8);
    padding: 10px;
    margin-bottom: 10px;
    display: none;
}

#sidebar .close:hover {
    cursor: pointer;
    color: rgb(245, 103, 103);

}

#sidebar .close i {
    font-size: 40px;
}

#sidebar .sidebar {
    background-color: white;
    display: flex;
    flex-direction: column;
    height: 80vh;
    position: relative;
    top: 3rem;
}

#sidebar h3 {
    font-weight: 500;
}

#sidebar .sidebar a, #sidebar .sidebar form {
    display: flex;
    color: var(--color-info-dark);
    height: 3.7rem;
    gap: 1rem;
    align-items: center;
    position: relative;
    transition: var(--transition);
    padding-left: 1rem;
}

#sidebar .sidebar a h3, #sidebar .sidebar form h3 {
    margin-top: 8px;
}

#sidebar .sidebar a span, #sidebar .sidebar form span {
    font-size: 1.6rem
}

#sidebar .sidebar form {
    position: absolute;
    bottom: 2rem;
    width: 100%;
}

#sidebar .sidebar a span, #sidebar .sidebar form span {
    margin-left: 10px;
}

#sidebar .sidebar a:hover, #sidebar .sidebar .active, #sidebar .sidebar form:hover {
    border-left: 10px solid var(--primary-color);
    background-color: rgb(229, 229, 229);
    color: var(--primary-color);
}

#sidebar .sidebar form {
    cursor: pointer;
    color: var(--color-info-dark) !important;
}

#sidebar .sidebar form button {
    border: transparent;
    background: none;
    display: flex;
    gap: 16px;
    font-size: 18px;
    width: 100%;
}

#sidebar .sidebar form button h3 {
    font-weight: bold;
    font-size: 15px;
    top: -1px;
    position: relative;
}

#sidebar .sidebar form button h3, #sidebar .sidebar form button i {
    color: var(--color-info-dark);
}

#sidebar .sidebar form button:hover {
    cursor: pointer;
}

#sidebar .sidebar form:hover button h3, #sidebar .sidebar form:hover button i {
    color: var(--primary-color) !important;
}

/* Main */
.main {
    margin-left: 270px;
    transition: 0.3s all linear;
    width: 100%;
    /* overflow: hidden; */
}

#sidebar:hover .main {
    background-color: red;
    margin-left: 350px;
}

.hideSidebar #sidebar {
    transform: translateX(-270px);
}

.hideSidebar .main {
    margin: 0;
}

#toggle-btn {
    background-color: transparent;
    font-size: 35px;
    border: none;
    display: none;
    cursor: pointer;
}

@media screen and (max-width:800px) {
    #sidebar .close {
        display: block;
    }

    #toggle-btn {
        display: block;
    }

    .main {
        margin: 0;
    }
}

#topBar {
    width: 100%;
    margin: auto;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.topBar {
    padding: 10px;
    margin-bottom: 2px solid black;
    width: 100%;
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding: 10px 20px;
    align-items: center;
}

.profileTopPhoto {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.profileTopPhoto img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.profileTop {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.profileTop a {
    color: var(--color-info-dark);
    font-size: 16px;
}

.profileTop a:hover {
    color: #333;
}

#surveyList {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.survey-card-dashboard {
    width: 96%;
    background: white;
    min-height: 170px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    display: flex;
    margin-bottom: 20px;
}


.survey-card-dashboard .survey-data h2 {
    min-height: 60px;
    line-height: 26px;
}

.survey-card-dashboard .survey-data {
    width: 60%;
    padding: 15px;
    padding-top: 20px;
    position: relative;
}

.survey-card-dashboard .survey-image {
    width: 40%;
    height: 100%;
    padding: 3px;
    border-radius: 10px;
}

.survey-card-dashboard .survey-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@media screen and (max-width:1100px) {
    #surveyList {
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .survey-card-dashboard {
        width: 100%;
    }

}

footer {
    background-color: white;
    width: 100%;
    text-align: center;
    color: rgb(80, 79, 79);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

footer p:first-child {
    padding: 15px;
}

footer p:last-child {
    padding: 15px;
    background: #333;
    color: white;
}

.dot-menu i {
    font-size: 25px;
    color: #757575;
}

.dot-menu {
    position: absolute;
    bottom: 20px;
    right: 6px;
}

.survey-card {
    width: 90%;
    margin: auto;
    margin-top: 10px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: 20px;
    display: flex;
    margin-bottom: 20px;
    height: auto;
}

.survey-card h1 {
    margin-bottom: 17px;
}

.survey-card-image {
    width: 40%;
}

.survey-card-content {
    width: 60%;
    padding: 25px;
}

.survey-card-content p {
    color: var(--color-info-dark);
}


.survey-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
}

@media screen and (max-width:800px) {
    .survey-card {
        flex-direction: column;
    }

    .survey-card-image {
        width: 100%;
        height: 200px !important;
    }

    .survey-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 0px;
    }

    .survey-card-content {
        width: 100%;
        background-color: rgb(255, 255, 255);
        height: auto;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

.grids-data {
    margin: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

@media screen and (max-width:800px) {
    .grids-data {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.grids-data>div {
    display: flex;
    font-size: 15px;
}

.grids-data .survey-card-type {
    color: #333;
    margin: 10px;
}

.grids-data .survey-card-general {
    margin: 10px 0;
    display: flex;
}

.status-active, .status-inactive {
    width: 6px;
    height: 2px;
    padding: 8px;
    border-radius: 50%;
    background-color: rgb(125, 201, 10);
    margin: 14px 5px;
}

.status-inactive {
    background-color: rgb(201, 10, 10);
}

#shareSurvey {
    background-color: white;
    padding: 30px;
    width: 90%;
    margin: 40px auto;
    box-shadow: var(--box-shadow);
    max-width: 700px;
}

#shareSurvey .grid, .survey-content .grid {
    display: grid;
    margin: 20px 0;
    grid-template-columns: repeat(2, 1fr);
    ;
}

@media screen and (max-width:800px) {
    #shareSurvey .grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        ;
    }
}

#shareSurvey .iconInput {
    margin: 20px 0;
    margin-bottom: 5px;
}


#shareSurvey p {
    color: #5c6a7b;
}

#shareSurvey .surveyData {
    color: #333;
    margin-right: 3px;
}

#shareSurvey p {
    position: relative;
    margin-bottom: 4px;
}

#shareSurvey .btn1 {
    color: white;
    background-color: black;
    cursor: pointer;
    font-size: 14px;
}

@media screen and (max-width:800px) {
    .pageHeading {
        font-size: 16px;
    }
}

@media screen and (max-width:400px) {
    .pageHeading {
        font-size: 15px;
    }
}

.loginBtn, .signupBtn {
    background-color: black;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-size: 15px !important;
    color: rgb(245, 245, 245) !important;
    border: 1px solid black;
}

.loginBtn:hover {
    background-color: transparent;
    color: #333 !important;
}

.signupBtn {
    color: #333 !important;
    background-color: transparent !important;
}

.signupBtn:hover {
    color: rgb(245, 245, 245) !important;
    background-color: black !important;
}

#survey-card-buttons {
    display: flex;
    justify-content: space-between
}


.flex-user-data {
    display: flex;
    margin: 20px;
    align-items: center;
    gap: 20px;
}

.userImage {
    width: 250px !important;
    height: 250px !important;
}

.userImage img {
    width: 100%;
    height: 100%;
}

.gird-user-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 80%;
    margin: 20px;
}

.flex-user-data p {
    color: var(--color-info-dark);
    justify-content: space-between;
}

.flex-user-data p span {
    color: #333;
    margin-right: 10px;
}

@media screen and (max-width:800px) {
    #survey-card-buttons {
        display: flex;
        flex-direction: column;
    }

    #survey-card-buttons>div {
        justify-content: space-between;
        margin: 3px;
    }

    .flex-user-data {
        flex-direction: column;
    }

    .gird-user-data {
        grid-template-columns: repeat(1, 1fr);
    }

}