.crypto-tax-calculator {
    --primary-color: #2e83a7;
    --secondary-color: #591c7e;
    --text-color: #080808;
    --result-background-color: #211b2e;
    --input-border-color: #d1d5db;
    --input-focus-color: #591c7e;
    padding: 30px 20px;
    border-radius: 12px;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
    max-width: 1200px;
    margin: 0 auto;
    color: var(--secondary-color);
 
}

.crypto-tax-calculator .calculator-container {
    display: flex;
    gap: 30px;
}

.crypto-tax-calculator .left-column {
    flex: 1;
}

.crypto-tax-calculator .right-column {
    flex: 1;
    background-color: var(--result-background-color);
    padding: 20px;
    border-radius: 0px;

    clip-path: polygon(
        25px 0,                    
        100% 0,                   
        100% calc(100% - 15px),   
        calc(100% - 15px) 100%,    
        0 100%,                    
        0 25px    
      );
}

.crypto-tax-calculator .form-group {
    margin-bottom: 24px;
}

.crypto-tax-calculator label {
    display: block;
    margin-bottom: 8px;
    /* font-weight: 600; */
    color: var(--text-color);
}

.crypto-tax-calculator .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.crypto-tax-calculator .currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-weight: 600;
}

.crypto-tax-calculator input[type="number"],
.crypto-tax-calculator input[type="text"],
.crypto-tax-calculator select {
    width: 100%;
    padding: 12px 16px 12px 30px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.crypto-tax-calculator input[type="number"]:focus,
.crypto-tax-calculator input[type="text"]:focus,
.crypto-tax-calculator select:focus {
    border-color: var(--input-focus-color);
    /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); */
    outline: none;
}

.crypto-tax-calculator .calculator-mode-selector {
    display: flex;
    justify-content: left;
    margin-bottom: 32px;
}

.crypto-tax-calculator .mode-button {
    padding: 2px 12px;
    margin-right: 10px;
    background-color: #fff;
    border: none;
    border-radius: 0px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.crypto-tax-calculator .mode-button.active {
    background-color: var(--primary-color);
    color: white;
}

.crypto-tax-calculator .desktop-row {
    display: flex;
    gap: 20px;
}

.crypto-tax-calculator .desktop-row .form-group {
    flex: 1;
}

.crypto-tax-calculator .holding-period {
    display: flex;
    align-items: center;
}

.crypto-tax-calculator .tumbler-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.crypto-tax-calculator .tumbler-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.crypto-tax-calculator .tumbler-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.crypto-tax-calculator .tumbler-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.crypto-tax-calculator .tumbler-switch label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.crypto-tax-calculator .tumbler-switch input:checked + label {
    background-color: var(--primary-color);
}

.crypto-tax-calculator .tumbler-switch input:checked + label:before {
    transform: translateX(26px);
}

.crypto-tax-calculator .holding-period-text {
    margin-left: 10px;
    font-size: 14px;
}

.crypto-tax-calculator #calculate-tax {
   
    width: 100%;
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;


    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
        100% 25px,
        100% 100%,
        15px 100%,
        0 calc(100% - 15px)
    );
}

.crypto-tax-calculator #calculate-tax:hover {
 /* opacity: 0.8; */
 background-color: #DC5992; 
}

.crypto-tax-calculator #results {
    margin-top: 32px;
}


.crypto-tax-calculator #results p {
    margin-bottom: 8px;
}

.crypto-tax-calculator #results span {
    font-weight: 600;
    opacity: 0.6;
}

.crypto-tax-calculator #results span.tax-rate-value{
    opacity: 1;
}
.crypto-tax-calculator #tax-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.crypto-tax-calculator #tax-details th,
.crypto-tax-calculator #tax-details td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.crypto-tax-calculator #tax-details th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.crypto-tax-calculator #disclaimer, .crypto-tax-calculator #note {
    margin-top: 24px;
    line-height: 19px;
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
}

@media (min-width: 769px) {
    .crypto-tax-calculator .tax-info-tooltip {
        position: fixed;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .crypto-tax-calculator .mode-button{
        font-size: 14px;
    }
    #results{
        font-size: 14px;
    }
    .crypto-tax-calculator .calculator-grid-mobile {
        display: block;
    }

    #custom-tax-value-container {
        margin-top: 20px;
      
    }

    .m-40px{ 
        margin-bottom: 0px !important;
    }
    .crypto-tax-calculator .calculator-grid-mobile  {
        display: block !important;
        
    }
    
    .crypto-tax-calculator .calculator-container {
        flex-direction: column;
    }

    .crypto-tax-calculator .desktop-row {
        flex-direction: column;
    }

    .crypto-tax-calculator .right-column {
        margin-top: 30px;
    }

    .crypto-tax-calculator .tax-info-tooltip {
        position: absolute;
        z-index: 1000;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        max-width: 300px;
        font-size: 14px;
    }
    .crypto-tax-calculator .floating-label-group label{
        font-size: 14px !important;
    }

    .crypto-tax-calculator .floating-label-group input:focus ~ label, .crypto-tax-calculator .floating-label-group input:not(:placeholder-shown) ~ label{
        font-size: 12px !important;
    }
    .crypto-tax-calculator .mobile-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }
}

.crypto-tax-calculator .calculator-grid, .crypto-tax-calculator .calculator-grid-mobile  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 10px;
}

#custom-tax-value-container {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
#custom-tax-value, #coin-name{
    padding-left: 15px !important;
}
.crypto-tax-calculator .floating-label-group {
    position: relative;
}

.crypto-tax-calculator .floating-label-group .always-active{
    top: 3px;
    font-size: 12px;
    opacity: 0.6;
}

.crypto-tax-calculator .floating-label-group input {
    width: 100%;
    height: 30px;
    padding: 32px 16px 17px 16px;
    border: 1px solid var(--input-border-color);
    border-radius: 0;
    font-size: 16px;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.crypto-tax-calculator .floating-label-group label {
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--text-color);
    font-size: 16px;
    pointer-events: none;
    transition: 0.2s ease all;
}

.crypto-tax-calculator .floating-label-group input:focus ~ label,
.crypto-tax-calculator .floating-label-group input:not(:placeholder-shown) ~ label {
    top: 3px;
    font-size: 12px;
    opacity: 0.6;
}

.crypto-tax-calculator .floating-label-group .currency-symbol {
    position: absolute;
    left: 16px;
    top: 33px;
    color: var(--text-color);
    font-weight: 400;
    visibility: hidden;
    transition: visibility 0.2s ease, top 0.2s ease;
}

.crypto-tax-calculator .floating-label-group input:focus ~ .currency-symbol,
.crypto-tax-calculator .floating-label-group input:not(:placeholder-shown) ~ .currency-symbol {
    visibility: visible;
    /* top: 30px; */
}

.crypto-tax-calculator .floating-label-group input {
    padding-left: 30px;
}

.crypto-tax-calculator .holding-period {
    grid-column: 1 / 2;
}

.crypto-tax-calculator #calculate-tax {
    grid-column: 2 / 3;
    justify-self: end;
}

/* Style for the checkbox */
.crypto-tax-calculator .holding-period label {
    display: flex;
    flex-direction: row;
    align-items: center; 
    cursor: pointer;
    flex-wrap: wrap; 
    position: relative;
}

.crypto-tax-calculator .holding-period label input[type="checkbox"] {
    transform: scale(1.5);
    transform-origin: top left;
    margin-right: 15px;
    margin-top: 15px;
    accent-color: var(--primary-color);
}


/* Style for the select dropdown */
.crypto-tax-calculator select {
    width: 100%;
    height: 51px;
    padding: 13px 16px 0px 16px;
    border: 1px solid var(--input-border-color);
    border-radius: 0px;
    font-size: 16px;
    color: var(--text-color);
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
}


.floating-label-group label.active .currency-symbol{
    display: block;
}

.floating-label-group label .currency-symbol{
    display: none;
}

.crypto-tax-calculator .tax-info-link {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.crypto-tax-calculator #tax-info-container {
    position: absolute;
    /* left: 0;
    right: 0; */
    margin-top: 5px;
}

.crypto-tax-calculator .tax-info-link:hover {
    text-decoration: underline;
}

.crypto-tax-calculator .tax-info-tooltip {
    display: none;
    position: fixed;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 20px;
    box-shadow: 0px 0px 11px rgb(0 0 0 / 38%);
    z-index: 1000;
    max-width: 450px;
    font-size: 14px;
    color: var(--text-color);
}
.crypto-tax-calculator .tax-info-tooltip h4{
    margin-top: 0px !important;
}
.crypto-tax-calculator .tax-info-tooltip h4, .crypto-tax-calculator .tax-info-tooltip h5 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
}

.crypto-tax-calculator .tax-info-tooltip ul {
    margin: 0;
    margin-bottom: 10px;
    padding-left: 20px;
}

.crypto-tax-calculator .tax-info-tooltip li {
    margin-bottom: -5px;
    color: #5d5d5d;
}

.tax-info-link span.tax-info-icon{
    border: 1px solid;
    font-weight: 600;
    font-size: 12px;
    border-radius: 100px;
    padding: 2px 6px;
}

.tax-info-link span.tax-info-icon:hover{
    text-decoration: none;
}

.crypto-tax-calculator .holding-period label span.ctc-small-text {
    flex-basis: 100%;
    font-size: 0.85em;
    opacity: 0.7;
    color: var(--text-color);
    margin-left: calc(1em + 14px);
    margin-top: -7px;
}

.crypto-tax-calculator #initial-message h3{
    opacity: 0.8;
    font-size: 1.5rem;
        opacity: 0.8;
        text-align: center;
        margin-top: 20px;
        font-size: 1.5rem;
    
}

.crypto-tax-calculator #results h3 {
color: var(--text-color);
filter: invert(1);
opacity: 0.6;
margin-bottom: 0px;
    font-size: 1.2rem;
}
.crypto-tax-calculator .result-header{
    text-align: center;
    color: var(--text-color);
filter: invert(1);
}
.crypto-tax-calculator .result-header .large-amount{
font-size: 2.5rem;
font-weight: 600;
margin-bottom: 20px;
}
.crypto-tax-calculator #crypto-tax-form hr{
    background-color: #353041;
    margin: 15px 0px;
}

.crypto-tax-calculator .result-row, .crypto-tax-calculator .tax-rate-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0px;
}

.crypto-tax-calculator .tax-rate-column:last-child {
    margin-right: 0; 
}

.crypto-tax-calculator .result-column, .crypto-tax-calculator .tax-rate-column {
  text-align: center;
  color: var(--text-color);
  
  flex: 1;
  margin-right: 15px;
}

.crypto-tax-calculator .result-column {
    filter: invert(1);
}

.crypto-tax-calculator .result-column h4, .crypto-tax-calculator .tax-rate-column h4 {
    opacity: 0.6;
    margin-bottom: 0px;
        font-size: 1rem; 
}


.crypto-tax-calculator .result-column .amount{
    font-size: 1.5rem;
    font-weight: 600;
    }

    .crypto-tax-calculator .tax-rate-info {
        display: flex;
        /* align-items: center;
        justify-content: space-between; */
        flex-direction: column;
    }

    .crypto-tax-calculator .tax-rate-text {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
    }

    .crypto-tax-calculator .tax-rate-value,
    .crypto-tax-calculator .tax-amount-value {
        font-size: 14px;
        font-weight: bold;
        color: var(--text-color);
        filter: invert(1);
    }

    .crypto-tax-calculator .tax-rate-lab,
    .crypto-tax-calculator .tax-amount-label {
        font-size: 12px;
        color: var(--text-color);
        filter: invert(1);
        opacity: 0.8;
    }
    
    .crypto-tax-calculator .tax-rate-bar {
        width: 100%;
        height: 8px;
        background-color: #38384d;
        border-radius: 0px;
        overflow: hidden;
    }
    
    .crypto-tax-calculator .tax-rate-fill {
        height: 100%;
        background-color: var(--primary-color);
    }

    .crypto-tax-calculator .tax-detail {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .crypto-tax-calculator .tax-detail-title {
        font-size: 14px;
        margin-bottom: 5px;
        color: #a0a0b5;
    }

    .crypto-tax-calculator .tax-amount {
        text-align: center;
        margin-top: 5px;
        font-size: 12px;
    }

    .crypto-tax-calculator  .amount-value{
        font-size: 1.5rem;
    }

    .crypto-tax-calculator  .tax-rate-label{
        color: var(--text-color);
        filter: invert(1);
        opacity: 0.8;
    }


    .crypto-tax-calculator .coin-entries {
        margin-bottom: 20px;
    }
    

    
.crypto-tax-calculator .coin-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.crypto-tax-calculator .coin-entry:not(:first-child) {
    padding-right: 30px;
}

.crypto-tax-calculator .remove-coin {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #616161;
    cursor: pointer;
    font-size: 18px;
    padding: 7px;
}

.crypto-tax-calculator #add-coin {
   
    padding: 2px 12px;
    margin-right: 10px;
    background-color: #fff;
    border: none;
    border-radius: 0px;
    border: 1px solid var(--secondary-color);
    width: 100%;
    cursor: pointer;
    color: var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
 
    margin-bottom: 20px;

}

.crypto-tax-calculator #add-coin:hover {
    opacity: 0.8;
}