@import url('https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap');

html,
body {
    width: 100%;
    padding: 0;
    margin: 0;
}

.top {
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    font-size: .875rem;
    background-color: rgb(255, 255, 255);
    padding: 20px;
    border-color: white;
    z-index: 2;
}


.navbar_link{
    margin-right: 15px;
}

.title {
    padding-top: 0px;
    align-items: center;
    font-size: 18px;
    text-transform: none;
    color: #02735E;
    vertical-align: center;
    font-weight: 700;
}

.subtitle {
    padding-top: 8px;
    vertical-align: center;
    align-items: center;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 550;
}

.subtitle a:not(.btn) {
    text-decoration: none;
    color: #000000;
}

.subtitle a:not(.btn):hover {
    text-decoration: none;
    color: #929292;
}

.login {
    padding-top: 8px;
    vertical-align: center;
    align-items: center;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 550;

    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
}

.login a:not(.btn) {
    text-decoration: none;
    color: #000000;
}

.login a:not(.btn):hover {
    text-decoration: none;
    color: #02735E;
}

.sidebar_overview {
    width: 25%;
}

.pwd_frgt {

    align-items: center;
    display: flex;
    justify-content: flex-end;

}

.pwd_frgt a:not(.btn) {
    text-decoration: none;
    color: #000000;
}

.pwd_frgt a:not(.btn):hover {
    text-decoration: none;
    color: #02735E;
}

.homepage-body {
    
    display: flex;
    align-items: center;

}

.homepage-body-h1 {
    color: #02735E;
    font-size: 48px;
    font-weight: 10;
    letter-spacing: 3px;
}

.bold-text {
    font-weight: bolder;
}

html {
    font-family: "open sans", sans-serif;
}

body>.container-fluid:first-child {
    padding: 0 !important;
}

.homepage-content {
    padding-top: 75px;
    display: flex;
    flex-direction: column;
}

.homepage-head {
    display: flex;
    justify-content: center;
    /* background-color: peachpuff; */
}

.text-sc {
    font-variant-caps: small-caps;
}

.homepage-background {
    background-image: url("https://bico.com/wp-content/uploads/2022/02/sustainability-background.jpg");
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 50px);
    margin: -24px;
}

.homepage-background:before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to bottom right, #002F4B, #DC4225);
    opacity: .6;
    z-index: 0
}

.homepage-background>* {
    z-index: 1;
}

.light h1,
.light h2,
.light h3,
.light h4 {
    color: #fff;
}

.light .lead,
.light {
    color: #eee;
}

.homepage-lead-text-block {
    max-width: 100%;
    text-align: justify;
}


.indicator-section {
    margin: 40px;
}

.indicators-title {
    font-variant-caps: small-caps;
    text-align: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.indicator-boxes {
    justify-content: center;
    display: flex;
}

.indicators-boxes-row {
    background-color: white;
    padding: 15px;
}

.indicator-box-title {
    color: #02735E;
    text-align: center;
    padding: 15px;
    font-variant-caps: small-caps;
    font-size: 20px;
}

.indicator-text {
    text-shadow: #05A688;
    color: #FFB800;
    text-align: center;
    padding: 15px;
    font-weight: bolder;
    font-size: 24px;
    border-top: 2px solid #02735E;
}

@media(min-width: 768px) {
    .homepage-lead-text-block {
        max-width: 85%;
    }
}

@media(min-width: 992px) {
    .homepage-lead-text-block {
        max-width: 85%;
    }
}

.bottom {
    margin-top: auto;
}

.ackn-elt {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ackn-elt:not(:last-child) {
    margin-bottom: 15px;
}

.light a:not(.btn) {
    text-decoration: underline;
    color: #ccc;
}

.light a:not(.btn):hover {
    text-decoration: underline;
    color: #fff;
}

.custom-scroll-main {
    overflow-y: auto;
}

.spg-reports a:not(.btn) {
    text-decoration: underline;
    color: #7c7c7c;
}

.spg-reports a:not(.btn):hover {
    text-decoration: underline;
    color: #000000;
}

table.dataTable.display>tbody>tr:has(.selected)>* {
    box-shadow: inset 0 0 0 999em #02735E !important;
    color: white;
}

.landscape a:not(.btn) {
    text-decoration: underline;
    color: #7c7c7c;
}

.landscape a:not(.btn):hover {
    text-decoration: underline;
    color: #000000;
}

.landscape {

    padding: 10px 40px;
    display: flex;
    flex-direction: column;

}

.download-button {
    padding: 5px 40px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.navbar_link{
    margin-right: 15px;
}
.card_title{
    font-weight: bold;
    text-align: center;
}

.number {
    text-align: center;
}

.total_farms{
    align-items: center;
    text-align: center;
}

.world_map{
    object-position: center;
}

.centered-content {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1500px; /* Adjust as necessary */
}

.sidebar {
    padding: 20px; /* Add padding inside the sidebar */
    background-color: #f8f9fa; /* Optional: Light gray background for sidebar */
    border-right: 1px solid #ddd; /* Optional: Add a separator line on the right */
    min-height: 100vh; /* Ensure sidebar stretches full height */
}


.main-content {
    padding: 30px;
    background: #f8f9fa;
    overflow-y: auto;
    flex-grow: 1;
}

.btn-consistent {
    width: 100%;          /* All buttons take full width of the container */
    min-width: 250px;     /* Ensures all buttons are at least 250px wide */
    text-align: center;   /* Aligns text to center */
    padding: 10px 15px;   /* Consistent padding */
    margin-bottom: 10px;  /* Adds spacing between buttons */
    white-space: normal;  /* Allows text wrapping */
}

.variable-description-card {
    margin-top: 10px;
    padding: 15px;
    background-color: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.description-header {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.description-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.variable-description-card .description-text {
    margin-bottom: 10px;
    color: #2c3e50 !important;
    font-size: 0.92em;
    line-height: 1.4;
}

html, body, .container-fluid, .row.flex-grow {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Updated sidebar container styling */
.sidebar-container {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #2c3e50, #34495e);
    border-right: 3px solid #27ae60;
    padding: 25px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Collapsed version for toggle support */
.sidebar-collapsed {
    width: 60px !important;
    overflow: hidden;
    padding: 10px !important;
}

.sidebar-collapsed *:not(.collapse-toggle):not(script):not(style) {
    display: none !important;
}

.sidebar-container h3,
.sidebar-container h4 {
    color: white;
    font-weight: 600;
    margin-top: 10px;
}

.sidebar-container .help-block,
.sidebar-container p {
    color: #ecf0f1 !important;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.input-label,
.shiny-input-container label {
    color: #ecf0f1 !important;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.sidebar-container .shiny-input-container input,
.sidebar-container .shiny-input-container select,
.sidebar-container .shiny-input-container .selectize-input {
    background: white;
    border: 2px solid #34495e;
    border-radius: 8px;
    padding: 10px 15px;
    color: #2c3e50;
    font-size: 0.95em;
    width: 100%;
}

.sidebar-container .shiny-input-container input:focus,
.sidebar-container .shiny-input-container select:focus,
.sidebar-container .shiny-input-container .selectize-input.focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}


.collapse-toggle {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    margin-bottom: 20px;
    text-align: left;
}
