/* Reset default margin/padding and ensure border-box sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: white;
    color: black;
    min-height: 100vh;
}

/* Dashboard Container */
.dashboard {
    padding: 74px;
    border-radius: 12px;
    width: 100%;
    position: relative;
    /* display: flex;
    flex-direction: column; */
}
.headerleftright {
    display: flex;
    justify-content: space-between;
}
/* New Filter Container and Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff8ec;
    border: 2px solid navajowhite;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn i {
    color: orange;
    font-size: 18px;
}

.filter-btn:hover {
    background-color: navajowhite;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: orange;
    color: white;
}

.filter-btn.active i {
    color: white;
}

/* New Filter Label */
.filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-label {
    font-size: 14px;
    color: gray;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.8;
}

#filter-select {
    display: none;
    width: 90%;
    padding: 12px 20px;
    border: 2px solid navajowhite;
    border-radius: 30px;
    font-size: 16px;
    background-color: #fff8ec;
    color: black;
    margin-top: 10px;
}
#backer {
    width: 10%;
    float: left;
}
.sabbt {
    width: 70px;
    height: 65px;
    border-radius: 12px;
}
.nameheading {
    text-align: center;
}

/* Search Input and Button */
.form-control-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 30px;
    border: 1px solid navajowhite;
    background-color: rgba(128, 128, 128, 0.242);
    font-size: 16px;
    color: black;
    outline: none;
    transition: all 0.3s ease;
  }

  .form-control-input::placeholder {
    color: grey;
  }

  .form-control-input:focus {
    border-color: black;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }

  .search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 18px;
    color: black;
  }

  .search-wrapper {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 95%;
    margin-bottom: 20px;
  }
  #backed {
    margin-top: 12px;
  }

/* Analysis Results Section */
#analysis-results {
    margin-top: 20px;
}

/* Individual Analysis Item */
.analysis-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: navajowhite;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #333;
}
.analysis-item:hover {
    background-color: rgb(255, 189, 91);
    transform: translateY(-3px); /* Slight hover effect */
}

@media screen and (max-width:600px) {
    .dashboard {
        padding: 21px;
        border-radius: 12px;
        width: 100%;
        position: relative;
    }
    #backer {
        width: 16%;
    }
   
    .menu-icon {
        cursor: pointer;
        width: 6%;
        margin-top: 6px;
    }
    .headerleftright {
        display: flex;
        justify-content: space-between;
        gap: 15px;
    }
    .filter-btn {
        width: 90%;
        justify-content: center;
    }
    /* .filter-container {
        display: none;
    } */

    #filter-select {
        display: block;
    }
    .filter-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    .filter-label {
        margin-bottom: 0;
        font-size: 14px;
        width: 235px;
        margin-top: 11px;
    }
    .filter-container {
        align-items: flex-start;
        width: auto;
        display: none;
    }
    .filter-btn {
        width: 100%;
        justify-content: flex-start;
    }
    #line {
        visibility: hidden;
    }
}