.conversionForm {
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.conversionForm .currencySubmit {
    display: inline-block;
    appearance: none;
    background-color: teal;
    color: #fff;
    border: none;
    font: 500 1em/1em 'Roboto', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: all 0.1s;
    -moz-transition: all 0.1s;
    transition: all 0.1s;
    border-radius: 999px!important;
    padding: 16px 48px;
    letter-spacing: 0.05em;
}

.conversionForm .currencySubmit:hover {
    background-color: #00a3a3;
    color: #fff;
    border: 1px solid #C7C7C7;
    font-weight: 500;
}

.loader {
    border: 8px solid rgba(0, 128, 128, 0.3);
    border-top: 8px solid #008080;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    display: inline-block;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.l-grid {
    display: block;
    text-align: center;
    /*box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);*/
}
.l-grid .header, .l-grid .footer, .left-column, .center-column, .right-column {
    padding: 30px;
    text-align: center;
}
.l-grid .header, .l-grid .footer {
    display: block;
    width: 100%;
    text-align: center;
}
.left-column {
    display: inline-block;
    vertical-align: middle;
}
.center-column {
    display: inline-block;
    vertical-align: middle;
}
.right-column {
    display: inline-block;
    vertical-align: middle;
}
.l-grid input:not(.currency-search__input):not([type=checkbox]){
    margin: 10px;
    padding: 10pt 20pt;
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    width: 200px !important;
}

.l-grid input[type=number]{
    margin: 0;
}

.l-grid .selectedCurrencyIcon{
    width: 50px;
}

.swap-btn{
    width: 74px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    font-size: 28px;
    border-radius: 46%;
    padding: 10px;
    color: teal !important;
    cursor: pointer;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.swap-btn:hover{
    background: lightgray;
}

input::-webkit-calendar-picker-indicator {
    opacity: 100 !important;
}

.amount-input{
    border-radius: 6px !important;
    background: none !important;
}

.result{
    text-align: center;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.result hr{
    border: .5px solid #eee;
}

.result h3{
    padding: 11px;
    /*color: white;*/
    /*background: teal;*/
    border-radius: 5px;
    margin: 20px 10px;
}

.result p{
    text-align: center;
}

.error{
    text-align: center;
}

.error hr{
    border: .5px solid #eee;
}

.error h3{
    padding: 11px;
    color: brown;
    border-radius: 5px;
    font-size: 18px;
}

.euro:before {
    content: "€";
    display: block;
    position: absolute;
    background: #f07228;
    padding: 1em;
    font-size: 1.3em;
    color: #fff;
}

.toggleArrow{
    line-height: 1.5em;
    position: relative;
    color: teal;
}

/* .nameWithFlag{
    position: relative;
    bottom: 10px;
} */

.table tr:hover {
    background-color: inherit;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: teal;
}

input:focus + .slider {
    box-shadow: 0 0 1px teal;
}

input:checked + .slider:before {
    -webkit-transform: translateX(17px);
    -ms-transform: translateX(17px);
    transform: translateX(17px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.sidebar-left{
    margin: 10px;
    width: 200px;
}

.sidebar-right{
    margin: 10px;
    width: 200px;
}

.sidebar-content{
    display: block;
    text-align: center;
    width: 100%;
}

.converter-main{
    display: flex !important;
}

.hardCodeTables{
    margin-top: 50px !important;
    display: flex !important;
}

.hardCodeTables .half{
    margin: 20px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.hardCodeTables .table td, .hardCodeTables .table th{
    text-align: center;
    border: none;
    border-bottom: 1px solid #ddd;
}

@media(min-width:992px){
    .toggleArrow{
        left: -46px;
    }
    /* .nameWithFlag{
        bottom: 20px;
    } */
}

@media(max-width:640px){
    .converter-main{
        display: block !important;
    }
    .half {
        width: inherit !important;
    }
    .hardCodeTables{
        display: block !important;
    }
    .table-currencycode {
        display: block!important;
    }
    .table-currencyname {
        display: none!important;
    }
    .table-cell {
        text-align: center!important;
        justify-content: center;
    }

    .table-row > .table-cell:first-child {
        flex: auto!important;
        -webkit-box-flex: 1!important;
    }
}

@media(max-width:400px) {
    .change-column{
        display: none!important;
    }
}

@media(max-width:350px) {
    .l-grid .header, .l-grid .footer, .left-column, .center-column, .right-column {
        padding: 30px 0px;
    }
    .chart-column {
        display: none!important;
    }
}

@media(max-width:600px) {
    .chart-container {
        height: 25vh!important;
    }
}

.chart-container {
    height: 52vh;
}

.table-chart {
    height: 5em;
    padding-right: 8px;
}

.table-row {
    position: relative;
    z-index: 1;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    white-space: nowrap;
    border-top: 1px solid rgb(240, 245, 250);
    border-bottom: 1px solid rgb(240, 245, 250);
}

.table-row:first-child {
    border-top: 0px;
}

.table-row > .table-cell:first-child {
    flex: 0 10 30%;
    -webkit-box-flex: 0;
}

.table-row > .table-cell {
    flex-basis: 17.5%;
    -webkit-box-flex: 1;
    flex-grow: 1;
}

.table-cell:first-child {
    padding-left: 16px;
}
.table-cell:last-child {
    padding-right: 16px;
}

.table-cell {
    display: flex;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px 8px;
    transition: all 0.5s;
    white-space: break-spaces;
    text-align: left;
    align-items: center;
}

.dark-cell {
    color: rgb(255, 255, 255);
}

.dark-cell:last-child {
    justify-content: flex-end;
}

#edit-button {
    margin: 0;
}

#edit-button:hover {
    color: aliceblue !important;
    background-color:rgb(0, 218, 218) !important;
    border-color: aliceblue !important;
}

.dark-row {
    z-index: 2;
    background: teal;
    border: 0px;
    border-radius: 8px;
}

.add-currency {
    text-align: left;
    padding: 18px;
}

.add-currency .select2 {
    width: 220px !important;
    text-align: center;
}

.delete-button {
    margin: 0;
    color: red;
    border-color: red;
    border-radius: 50%;
    padding-bottom: unset;
    margin-right: 0px;
    height: 40px;
    width: 0;
    opacity: 0;
    padding: 0px;
    margin-right: 0px;
    overflow: hidden;
    transition: width 0.5s, opacity 1s linear;
    cursor: pointer;
}

.delete-button:hover {
    background-color: rgb(245, 207, 207);
    transform: scale(1.2);
    box-shadow: 0 0 4px #111;
    transition: .3s;
    color: red;
    border-color: red;
}

.chart-buttons {
    display: flex;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    justify-content: center;
    margin: 20px auto 5px;
}

.chart-button {
    border-radius: 16px;
    background: rgb(255, 255, 255);
    color: rgb(92, 102, 123);
    border: 0px;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 15px;
    margin: 0px 2px;
}

.chart-button:hover {
    color: darkgreen;
}
.chart-button-selected:hover {
    background: teal;
    color: white;
}

.chart-button-selected {
    border-radius: 16px;
    background: #005757;
    color: rgb(255, 255, 255);
    border: 0px;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 15px;
    margin: 0px 2px;
}

.table th, .table td {
    text-align: center!important;
}

.rates-chart div {
    height: 70px!important;
    width: 130px!important;
}

.table-currencycode {
    display: none;
}
.inverse-switch {
    flex-wrap: wrap;
}
.flex {
    display: flex;
     flex-direction: row;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 6px!important;
}
select, .select2{
    width: 271px!important;
    border: none !important;
}
.select2-container .select2-selection--single .select2-selection__rendered{
    padding: 10px;
}
.select2-container--default .select2-selection--single{
    border: none !important;
    height: auto !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}
input[type=search], .select2-container--default .select2-search--dropdown .select2-search__field{
    border-radius: unset !important;
    padding: 8px;
    border-color: darkgrey !important;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.select2-container--open .select2-dropdown--below{
    width: 271px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b{
    top: 76% !important;
    margin-left: -8px !important;
}

.rate-heading {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 800;
}
#baseCurrencyName {
    font-size: 16px;
}

.dropdown-select {
    border-radius: 5px;
    height: 55px;
    margin-bottom: 0;
}

.dark-text {
    color: #444444
}

/* ── CurrencySearch component ──────────────────────────────────────────────── */
/* Trigger: matches select2 look from original */
.currency-search__selected {
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%) !important;
    padding: 12px 14px !important;
    min-height: 55px;
    width: 271px;
    background: #fff;
    cursor: pointer;
    display: flex !important;
    text-align: left;
    align-items: center;
    gap: 10px;
    transition: box-shadow 0.15s;
    box-sizing: border-box;
}
.currency-search__selected:hover,
.currency-search__selected[aria-expanded="true"] {
    box-shadow: 0 4px 12px 0 rgb(0 0 0 / 22%) !important;
}

/* Search input inside dropdown — override .l-grid input completely */
input.currency-search__input,
.l-grid input.currency-search__input {
    width: 100% !important;
    margin: 0 !important;
    padding: 2px 4px !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    outline: none;
}

/* Amount column: min-width prevents layout shift on inverse toggle */
.table-cell.amount-cell {
    min-width: 120px;
    font-variant-numeric: tabular-nums;
}