/* XML rates admin page */
.rates-update-setting-wrapper .button-wrapper{
	display: flex;
}

/* currency converter */
.currency-converter {
    max-width: 400px;
    margin: 50px auto;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    color: black;
    font-family: Montserrat, sans-serif;
}

.currency-converter .buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.currency-converter .buttons button {
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    flex: 1;
    margin: 0 5px;
    font-weight: bold;
    min-width: 100px;
	border-radius: 4px;
}

.currency-converter .buttons button.active {
    background-color: #A37529;
    color: white;
}

.currency-box {
    display: flex;
    align-items: center;
    background:white;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0 ;
    border: 1px solid #555;
}

#currencySelect, #targetCurrencySelect {
    width: 120px; 
    font-size: 14px;
	/* space for flag */
    padding-left: 45px; 
    background-position: left center;
    background-repeat: no-repeat;
    height: 40px;
    font-family: Arial, sans-serif, "Segoe UI Emoji", "Noto Color Emoji";
}

#currencySelect option, #targetCurrencySelect option {
    font-size: 16px;
    display: flex;
    align-items: center;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

#selectedCurrencyFlag img, #selectedTargetCurrencyFlag img {
	/* flag size increase */
    width: 35px; 
    height: auto;
    margin-right: 10px;
}

.exchange-rate {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #f6a623;
}

#result {
    color: black; 
}

.currency-table-container {
    width: 100%;
    max-width: 1367px;
    margin: 20px 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#searchInput {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#searchInput:focus-visible{
	outline-color: #ddd;
}

.currency-table-container table {
    width: 100%;
    border-collapse: collapse;
	background-color: #000000;
}

.currency-table-container th,
.currency-table-container td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.currency-table-container table thead th {
    color: #ffffff;
}

.currency-table-container table tbody td {
    font-size: 16px;
    font-weight: bold;
}

.currency-table-container table thead th {
    font-weight: bold;
}

.currency-table-container table thead{
	background: radial-gradient(circle, #fca90e 0%, #a17d43 100%);
}

.currency-table-container tbody td:nth-child(4) {
    color: #44ff44;
}

.currency-table-container tbody td:nth-child(5) {
    color: #ff4444;
}

.currency-table-container tbody td{
	color: #d3d3d3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	align-content: center;
	background-color: #000000;
    border-bottom: 1px solid #333;
}

.currency-table-container tr:nth-child(n+2) {
    background-color: #000000; 
}


/* tab for live rates section*/
.currency-tabs {
    display: flex;
    margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 5px;
}

.currency-tabs button.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
	flex-grow:1;
	color: black;
	background: transparent;
	border-bottom: 2px solid #be9451;

}

 button.tab-button.active, 
 button.tab-button.active:hover  {
	background: radial-gradient(circle, #fca90e 0%, #a17d43 100%);
    color: #ffffff;
}

 button.tab-button:hover{
	background-color: white;
	color: black;
}

 .tab-content {
    display: none;
}
 .tab-content.active {
    display: block;
}


 table#currencyTableExotic > * tr,
 table#currencyTableMajor > * tr{
		display: grid;
		grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr);

}

/*  media query */

@media screen and (max-width :400px){
	button.tab-button{
		border: 1px solid #ddd;
		border-radius: 4px;
	}
	button.tab-button.active{
		border: 1px solid #f49b0b;
	}
}

@media screen and (max-width :450px){
	.currency-table-container  table tbody tr td:nth-of-type(1){
		flex-wrap: wrap;
	}
	.currency-table-container  table thead th, table tbody td{
		padding: 15px 6px;
	}
}

@media screen and (min-width :400px){
	.currency-table-container  table thead th { 
		font-size: 18px!important;
	}
	.currency-table-container  tbody td.rate{
		letter-spacing: 0.03em;
	}
	
	.currency-tabs{
		flex-wrap: nowrap;
 		border-bottom: 2px solid #ddd;	
		gap: 0;
	}
}

@media screen and (min-width: 460px){
	.currency-converter {
		min-width: 350px;
	}
}

@media screen and (max-width: 767px) {
	.currency-table-container {
		width: 100%;
		left: 0;
		transform: none;
	}
	table#currencyTableExotic > * tr,
	table#currencyTableMajor > * tr {
		grid-template-columns: 20% 25% 27.5% 27.5%;
	}
	.currency-table-container tbody td.col-name,
	.currency-table-container thead th.col-name {
		display: none;
	}
}


@media screen and (min-width: 520px){
	.currency-table-container  table tbody tr td:nth-of-type(1){
		flex-wrap: nowrap;
	}
	.currency-table-container  tbody td:nth-child(1) span{
		margin-left: 5px;
	}
}
	


