body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ########################################### */
/* ################ Nav - Bar ################ */
/* ########################################### */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0.6rem 200px;
    border-bottom: 2px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.account-manager {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.2rem 1rem;
    border: 1px solid #666;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
}

.account-manager.active .dropdown-menu {
    display: block;
}

.menu-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

/* ########################################### */
/* ########################################### */
/* ########################################### */
.breadcrumb {
    margin: 0 200px;
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 2px solid #ccc;
    margin-top: 10px;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: none;
}

.breadcrumb span {
    color: #555;
}

.calculator-intro {
    padding: 2rem 1rem;
    margin: 0 200px;
}

.calculator-intro h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #333;
}

.calculator-intro .highlight {
    font-size: 1rem;
    color: #555;
    margin: 0.5rem 0;
}

.calculator-intro p {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0;
}

.crypto-app {
    padding: 1rem 1rem;
    margin: 0 200px;
}

.crypto-app-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crypto-app-left {
    display: flex;
    flex-direction: column;
}

.crypto-app label {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.choose-crypto-text {
    position: relative;
    top: -10px; /* Verplaats de tekst 5px omhoog, pas aan naar wens */
}

.dropdown {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    width: fit-content;
}

.crypto-logo {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
}

.crypto-info {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
}

.crypto-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.crypto-rate {
    font-size: 0.9rem;
    color: #666;
}

.dropdown-arrow {
    font-size: 1rem;
    color: #666;
}

.crypto-app-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.search-bar {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 200px;
    font-size: 1rem;
    margin-top: 15px;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
}

.filter-btn.active {
    background: #e6f0fa;
    color: #1a73e8;
    border-color: #1a73e8;
}

button  {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
    margin-top: 1rem;
}

#fileInput {
    margin-top: 1rem;
    padding: 0.5rem;
}

.search-results {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    width: 215px;
    z-index: 10;
    top: calc(100% + 0.5rem);
    left: 0;
}

.crypto-app-right:focus-within .search-results,
.search-results.show {
    display: block;
}

.coin-result {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.coin-result:last-child {
    border-bottom: none;
}

.coin-result:hover {
    background: #f5f5f5;
}

.coin-info {
    display: flex;
    flex-direction: column;
}

.coin-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.coin-symbol {
    font-size: 0.9rem;
    color: #666;
}

.coin-rate {
    font-size: 0.9rem;
    color: #666;
}

.coin-logo {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
}

/* ########################################### */
/* ############## Selected Coin ############## */
/* ########################################### */

.selected-coin {
    margin: 0 200px;
    padding: 1rem;
    position: relative;
}

.selected-coin h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Flex container voor 3 kolommen */
.coin-box-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Zorg dat elke kolom gelijke ruimte krijgt */
.coin-box-container > .coin-details,
.coin-box-container > .coin-inputs,
.coin-box-container > .staking-time {
    flex: 1;
    height: 60px;
    overflow: hidden; /* voorkomt dat content buiten de box uitsteekt */
    display: flex;
    align-items: center; /* centreert inhoud verticaal */
    padding: 0;
    box-sizing: border-box;
}

/* Linker box: Coin details */
.coin-details {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-align: left;
}

.selected-coin-logo {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    padding-left: 10px;
}

.coin-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coin-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.coin-rate {
    font-size: 0.85rem;
    color: #555;
}

/* Midden box: Inputs */
.coin-inputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
}

.coin-inputs h3{
    margin: 0;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    margin-right: 45px;
}

.amount-section {
    text-align: center;
}

.input-field {
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.75rem;
    width: 175px;
    margin-left: 4px;
    background-color: #fff;
    transition: border-color 0.3s;
    justify-content: center;
    text-align: center;
}

.input-field:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
}

#coinSymbol {
    font-weight: bold;
    margin-left: 4px;
    font-size: 0.75rem;
}

/* Rechter box: Staking time */
.staking-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
}

.staking-time h3 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
}

.time-box {
    display: flex;
    gap: 4px;
    margin-top: 2px; /* beetje ruimte onder titel */
}

.time-input {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    text-align: center;
    background-color: #e5e5e5;
    color: #555;
    font-weight: bold;
}

.time-input:focus {
    border-color: #007bff;
    outline: none;
}

.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-box label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.time-box span {
    background-color: #666;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 3px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ########################################### */
/* ################### Chart ################# */
/* ########################################### */

.rewards-chart {
    margin: 0 200px;
    padding: 1rem;
}

.rewards-chart h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

#rewardsChart {
    max-height: 400px;
}

/* ########################################### */
/* ############## Setting Icon ############### */
/* ########################################### */

.settings-icon {
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 0.5rem;
    float: right; /* Plaats het icoon aan de rechterkant */
    padding-bottom: 7px;
}

.settings-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.4rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    right: 15px; /* Zet het menu gelijk met de rechterkant van de sectie */
    top: 70px; /* Plaats het net onder de h2 (aanpassen indien nodig) */
}

.settings-menu label {
    display: block;
    margin: 0.25rem 0;
}

.settings-menu input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Zorg ervoor dat de container niet overlapt */
.coin-box-container {
    clear: both; /* Voorkomt overlappen met het menu */
}

