* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    padding: 0;
    color: var(--text);
}

/* Base styles and variables */
:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --success: #10b981;
    --error: #ef4444;
    --background: #1e293b;
    --card-bg: #293548;
    --surface: #475569;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: rgba(255, 255, 255, 0.15);
    --primary-dark: #1976D2;
    --background-dark: rgba(0, 0, 0, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);
    --spacing-base: 20px;
    --primary-rgb: 59, 130, 246; /* RGB values for primary color */
}

/* Add theme variables for both themes */
:root[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --success: #10b981;
    --error: #ef4444;
    --background: #1e293b;
    --card-bg: #293548;
    --surface: #475569;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --border: rgba(255, 255, 255, 0.15);
    --primary-dark: #1976D2;
    --background-dark: rgba(0, 0, 0, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);
    --primary-rgb: 59, 130, 246;
}

:root[data-theme="light"] {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --success: #16a34a;
    --error: #dc2626;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --surface: #e2e8f0;
    --text: #0f172a;
    --text-secondary: #475569;
    --border: rgba(0, 0, 0, 0.1);
    --primary-dark: #1d4ed8;
    --background-dark: rgba(0, 0, 0, 0.05);
    --border-light: rgba(0, 0, 0, 0.05);
    --primary-rgb: 37, 99, 235;
}

/* Responsive breakpoints */
/* 
    Desktop: > 1200px (default)
    Laptop: 1024px - 1200px
    Tablet: 768px - 1024px
    Mobile: < 768px
*/

.container {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 0;
}

.exchange-card {
    width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--surface);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.header h2 {
    margin: 0;
    text-align: left;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 48px !important;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    line-height: 1;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.rates-info {
    text-align: right;
}

.rates-info h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: normal;
    white-space: nowrap;
}

.update-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: normal;
}

h2, h3 {
    font-weight: 600;
    color: var(--text);
}

h2 {
    font-size: 28px;
    letter-spacing: 0.5px;
}

.last-update {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
}

/* Modern button styles */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Refresh button */
.refresh-button {
    display: none;
}

/* Swap button */
.swap-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin: 15px auto;
    align-self: center;
}

.swap-button i {
    color: var(--primary-light);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.swap-button:hover {
    background: var(--primary);
}

.swap-button:hover i {
    color: white;
    transform: rotate(180deg);
}

.swap-button:active {
    transform: scale(0.95);
}

.calculator-section, .rates-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calculator-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 650px;
}

.calculator-section h3 {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.converter {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.amount-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amount-container label {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.amount-container input,
.amount-container select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    outline: none;
    font-size: 16px;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.amount-container input:focus,
.amount-container select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Exchange rate display */
.exchange-rate {
    margin-top: 15px;
    padding: 12px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    padding: 4px 12px;
}

.rate span {
    font-size: 16px;
}

.rate-value {
    color: var(--success);
}

.rates-table-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.rates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Header styling */
.rates-table thead {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rates-table th {
    height: 46px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    text-align: left;
    vertical-align: middle;
    line-height: 1;
}

/* Column widths */
.rates-table th:nth-child(1) { width: 46%; }
.rates-table th:nth-child(2),
.rates-table th:nth-child(3) { width: 22%; }
.rates-table th:nth-child(4) { 
    width: 46px;
    padding: 0;
    text-align: center;
}

/* Cell styling */
.rates-table td {
    height: 46px;
    padding: 0 20px;
    vertical-align: middle;
    line-height: 1;
}

.rates-table td:nth-child(2),
.rates-table td:nth-child(3) {
    font-size: 15px;
    font-weight: 500;
    color: var(--success);
    font-family: 'Segoe UI', -apple-system, system-ui, sans-serif;
}

/* Row styling */
.rates-table tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rates-table tbody tr:last-child {
    border-bottom: none;
}

.rates-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Currency name layout */
.currency-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-flag {
    flex-shrink: 0;
    width: 22px;
    height: 16px;
    display: flex;
    align-items: center;
}

.currency-flag .fi {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.currency-text {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.currency-code {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
}

.currency-fullname {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trend column */
.trend-header,
.trend-container,
.trend-column {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-header {
    gap: 2px;
}

.trend-up-icon,
.trend-down-icon,
.trend-column i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Crypto separator */
.crypto-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1) !important;
    margin: 4px 0;
}

.crypto-row td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.crypto-row .currency-code {
    color: #f59e0b; /* Bitcoin orange for crypto */
}

/* Light theme adjustments */
[data-theme="light"] {
    .rates-table-container {
        background: rgba(59, 130, 246, 0.03);  /* Very light blue background */
        border: 1px solid rgba(59, 130, 246, 0.1);
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    }

    .rates-table thead {
        background: rgba(59, 130, 246, 0.08);  /* Slightly darker blue for header */
        border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    }

    .rates-table tbody tr {
        border-bottom: 1px solid rgba(59, 130, 246, 0.06);
    }

    .rates-table tbody tr:hover {
        background: rgba(59, 130, 246, 0.05);
    }

    .crypto-separator {
        background: rgba(59, 130, 246, 0.1) !important;
    }

    /* Rate values color adjustment */
    .rates-table td:nth-child(2),
    .rates-table td:nth-child(3) {
        color: #2563eb;  /* Slightly darker blue for better contrast */
    }

    /* Header text color */
    .rates-table th {
        color: #1e40af;  /* Dark blue for header text */
    }

    /* Row clicked state */
    .row-clicked {
        background: rgba(59, 130, 246, 0.08) !important;
    }

    /* Rates section container */
    .rates-section {
        background: white;
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.1);
    }

    /* Section title */
    .rates-section h3 {
        color: #1e40af;
        opacity: 1;
    }
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
    padding: 0 20px;
    width: 100%;
}

.rates-section {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.rates-section h3 {
    font-size: 13px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rates-update-time {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    padding: 0;
    box-shadow: none;
}

.rates-update-time::before {
    content: "Përditsuar:";
    font-size: 12px;
    opacity: 0.9;
}

.rates-update-time span {
    color: var(--success);
    font-weight: 600;
}

/* Light theme adjustment */
[data-theme="light"] .rates-update-time span {
    color: #059669;
}

.rates-table-container::-webkit-scrollbar {
    width: 8px;
}

.rates-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.rates-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.rates-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.calculator-section h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.converter {
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amount-container {
    gap: 8px;
}

.amount-container input,
.amount-container select {
    padding: 10px;
    font-size: 14px;
}

.exchange-rate {
    margin-top: 15px;
    padding: 12px;
    text-align: center;
}

.rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
}

.rate span {
    font-size: 16px;
}

.rate-value {
    color: var(--success);
}

.trend-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.trend-container span {
    font-size: 0.85rem;
}

/* Style the select dropdowns */
.amount-container select {
    width: 100%;
    padding: 8px 30px 8px 12px;
    background: var(--card-bg);  /* Match the calculator background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    margin-top: 5px;
}

/* Style the select options */
.amount-container select option {
    background-color: var(--card-bg);  /* Match the calculator background */
    color: white;
    padding: 10px;
}

/* Remove any white borders/lines */
.amount-container select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.amount-container select:hover {
    border-color: var(--primary-light);
}

/* Style the input fields */
.amount-container input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    outline: none;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

.amount-container input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.amount-container input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Style the labels */
.amount-container label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

/* Update amount container layout */
.amount-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .calculator-section,
    .rates-section {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .header-nav {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .header h2 {
        font-size: 28px;
        text-align: center;
        justify-content: center;
    }

    .logo-icon {
        font-size: 42px !important;
    }

    .rates-info {
        text-align: center;
        order: -1;
    }

    .nav-buttons {
        gap: 10px;
    }

    .nav-button {
        padding: 8px 16px;
        min-width: 120px;
        font-size: 14px;
    }

    .nav-button i {
        font-size: 16px;
    }

    .update-date {
        font-size: 12px;
    }

    .calculator-section,
    .rates-section {
        padding: 15px;
    }

    .input-group {
        gap: 12px;
    }

    .swap-button {
        width: 42px;
        height: 42px;
        margin: 10px auto;
    }

    .swap-button:hover {
        transform: rotate(90deg);
    }

    .swap-button:active {
        transform: rotate(90deg) scale(0.95);
    }

    .refresh-button {
        width: 30px;
        height: 30px;
    }

    .refresh-button i,
    .swap-button i {
        font-size: 14px;
    }

    .rates-table-container {
        border-radius: 8px;
        margin: 0;
    }

    .rates-table {
        width: 100%;
        min-width: unset;
    }

    .rates-table th:nth-child(1) { 
        width: 34%;  /* Reduce width of currency column */
        padding-left: 12px;
    }
    
    .rates-table th:nth-child(2),
    .rates-table th:nth-child(3) { 
        width: 28%;  /* Increase width of rate columns */
        padding-left: 8px;
    }
    
    .rates-table th:nth-child(4) { 
        width: 10%;  /* Keep trend column width */
    }

    /* Adjust cell padding */
    .rates-table td,
    .rates-table th {
        padding: 12px 6px;
    }

    /* Optimize currency name display */
    .currency-name {
        gap: 8px;  /* Reduce gap between flag and code */
    }

    .currency-flag {
        width: 18px;  /* Smaller flag size */
    }

    .currency-flag .fi {
        font-size: 16px;
    }

    /* Adjust font sizes */
    .rates-table td:nth-child(2),
    .rates-table td:nth-child(3) {
        font-size: 13px;
        padding-left: 4px;
        padding-right: 4px;
    }

    /* Trend column improvements */
    .trend-column {
        padding: 0 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .trend-column i {
        font-size: 16px;  /* Slightly larger icons */
    }

    .trend-container {
        width: 24px;  /* Fixed width container */
        height: 24px;  /* Fixed height for better touch targets */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rates-section::after {
        display: none;
    }

    .icon-button .bi {
        font-size: 14px;
    }

    .currency-fullname {
        display: none;
    }

    .exchange-rate {
        padding: 8px;
        margin: 10px 0;
    }

    .rate {
        gap: 4px;
        font-size: 14px;
        padding: 4px 8px;
    }

    .rate span {
        font-size: 14px;
    }

    .fee-info {
        font-size: 11px;
        margin-left: 6px;
    }

    .convert-button,
    .print-button {
        padding: 14px;
        min-height: 48px;
        font-size: 16px;
    }

    .rates-table th {
        font-size: 12px;
        padding: 14px 12px;
    }

    .rates-table td {
        padding: 12px;
    }

    .rates-table th:nth-child(1),
    .rates-table td:nth-child(1) {
        padding-left: 16px;
    }

    .currency-name {
        gap: 10px;
    }

    .currency-flag .fi {
        font-size: 18px;
    }

    .currency-code {
        font-size: 14px;
    }

    .currency-fullname {
        display: none;
    }

    .rates-table td:nth-child(2),
    .rates-table td:nth-child(3) {
        font-size: 14px;
        padding-left: 12px;
    }

    .trend-column i {
        font-size: 14px;
    }

    .rates-section h3 {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .rates-update-time {
        width: auto;
        order: 0;
        margin-left: 10px;
        padding: 5px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .rates-update-time::before {
        content: "Përditsuar:";
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    .exchange-card {
        padding: 0;
    }

    .header {
        padding-bottom: 10px;
    }

    .calculator-section,
    .rates-section {
        padding: 12px;
    }

    h2 {
        font-size: 24px;
    }

    .logo-icon {
        font-size: 36px !important;
    }

    .rates-section h3,
    .calculator-section h3 {
        font-size: 13px;
    }

    .update-date {
        display: block;
        margin-top: 2px;
    }

    .amount-container input,
    .amount-container select {
        font-size: 16px;
        padding: 10px;
    }

    .convert-button {
        padding: 12px;
        font-size: 14px;
    }

    .rate, .rate span {
        font-size: 14px;
    }

    .rate-amount,
    .rate-value {
        font-size: 20px;
    }

    .rate-currency {
        font-size: 13px;
        padding: 3px 8px;
    }

    .rate-equals {
        font-size: 16px;
    }

    .rates-table-container {
        border-radius: 8px;
        margin: 0;
    }

    .rates-table th:nth-child(1) { 
        width: 32%;
        padding-left: 8px;
    }
    
    .rates-table th:nth-child(2),
    .rates-table th:nth-child(3) { 
        width: 29%;
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .rates-table th:nth-child(4) { 
        width: 10%;
    }

    .rates-table td,
    .rates-table th {
        padding: 10px 4px;
    }

    .rates-table td:nth-child(2),
    .rates-table td:nth-child(3) {
        padding-left: 4px;
    }

    .currency-flag .fi {
        font-size: 18px;
        margin-right: 6px;
    }

    .currency-code {
        font-size: 13px;
    }

    .rates-table td:nth-child(2),
    .rates-table td:nth-child(3) {
        font-size: 14px;
        padding-right: 8px;
    }

    .currency-name {
        gap: 6px;
    }

    .calculator-section {
        padding: 15px;
        margin: 5px;
        width: calc(100% - 10px);
    }

    .amount-container label {
        font-size: 14px;
    }

    .input-currency {
        right: 15px;
        font-size: 16px;
    }

    .amount-container input {
        padding-right: 65px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode specific styles if needed */
}

/* High contrast mode */
@media (prefers-contrast: high) {
    /* Add high contrast specific styles if needed */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Icon styles */
.bi {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button .bi {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.trend-up {
    color: #10b981; /* Specific green color */
}

.trend-down {
    color: #ef4444; /* Specific red color */
}

.trend-neutral {
    color: var(--text-secondary);
}

/* Convert button styles */
.convert-button {
    width: auto;
    padding: 10px 15px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 0;
    min-width: 120px;
}

.convert-button i {
    font-size: 16px;
}

.convert-button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.convert-button:active {
    transform: translateY(1px);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .convert-button {
        padding: 12px;
        font-size: 14px;
    }

    .convert-button i {
        font-size: 16px;
    }
}

/* Table styling improvements */
.rates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Cell alignment */
.rates-table td,
.rates-table th {
    text-align: left;
    padding: 12px 15px;
}

.rates-table td:nth-child(2),
.rates-table td:nth-child(3) {
    text-align: left;
    padding-left: 12px;
    font-family: 'Segoe UI', sans-serif;
    color: var(--success);
}

.rates-table td:nth-child(4) {
    text-align: center;
}

/* Remove spinners from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

.input-with-currency {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.amount-container input {
    padding-right: 60px; /* Make room for currency code */
}

/* Clickable row styles */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.row-clicked {
    background: rgba(var(--primary-rgb), 0.1) !important;
}

/* Header navigation styles */
.header-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.nav-button i {
    font-size: 18px;
    color: white;
}

.nav-button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.nav-button:active {
    transform: translateY(1px);
}

/* Update nav-button styles for icon-only buttons */
.nav-button[href^="tel:"],
.nav-button[href^="https://maps"] {
    min-width: unset;
    width: 45px;
    padding: 10px;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .nav-button[href^="tel:"],
    .nav-button[href^="https://maps"] {
        width: 40px;
        padding: 8px;
    }
}

.fee-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .fee-info {
        font-size: 11px;
        margin-left: 6px;
    }
}

/* Update trend icon sizes for better visibility */
.trend-column i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .trend-column i {
        font-size: 14px;
    }
}

/* Footer adjustments */
.footer {
    background: var(--card-bg);
    padding: 20px 20px 15px;
    border-top: 1px solid var(--border);
    width: 100%;
    margin-top: 20px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section i {
    color: var(--primary);
    font-size: 16px;
}

.footer-bottom {
    max-width: 1000px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section p {
        justify-content: center;
    }
}

/* Allow selection for input fields */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Add these styles for the print button */
.print-button {
    width: 100%;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.print-button i {
    font-size: 18px;
}

.print-button:hover {
    background: var(--background-dark);
    transform: translateY(-1px);
}

.print-button:active {
    transform: translateY(1px);
}

/* Update the print styles */
@media print {
    @page {
        margin: 0;
        size: 80mm auto;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 80mm !important;
        background: white !important;
    }

    body * {
        display: none !important;
    }

    #print-container {
        display: block !important;
    }

    #receipt-content {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 80mm !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }

    #receipt-content pre {
        display: block !important;
        visibility: visible !important;
        font-family: monospace !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        white-space: pre !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        letter-spacing: 0 !important;
        text-align: left !important;
        overflow: visible !important;
    }
}

/* Update the print button styles */
.print-icon-button {
    padding: 14px 0;
    width: 45px;
    height: 45px;
    min-height: 45px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.print-icon-button i {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-icon-button:hover {
    background: var(--background-dark);
    transform: translateY(-1px);
}

.print-icon-button:active {
    transform: translateY(1px);
}

/* Update convert button to work with flex layout */
.convert-button {
    margin-top: 0;
}

/* Add margin-top to the buttons container */
.buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;  /* Add space between dropdown and buttons */
}

/* Crypto separator styles */
.crypto-separator {
    background: none !important;
}

.crypto-separator:hover {
    background: none !important;
}

.separator-content {
    display: flex;
    align-items: center;
    padding: 0px 0;  /* Reduced from 8px to 4px */
}

.separator-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Loading placeholder styles */
.loading-placeholder {
    color: var(--text-secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Update calculator container height */
.calculator-section > div {
    margin: auto 0;  /* Center vertically within the section */
}

/* Update trend column header */
.trend-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.trend-header i {
    font-size: 14px;
}

/* Remove the rotation transforms */
.trend-up-icon {
    color: var(--success);
}

.trend-down-icon {
    color: var(--error);
}

/* Adjust trend column width and alignment */
.rates-table th:nth-child(4),
.rates-table td:nth-child(4) { 
    width: 10%;
    text-align: center;
    padding: 0;
}

@media (max-width: 768px) {
    .trend-header i {
        font-size: 11px;
    }
}

/* Theme toggle button styles */
.theme-toggle {
    min-width: unset !important;
    width: 45px;
    padding: 10px !important;
}

.theme-toggle i {
    font-size: 18px;
}

.theme-toggle .light-icon {
    display: none;
}

.theme-toggle .dark-icon {
    display: flex;
}

/* Show/hide icons based on theme */
[data-theme="light"] .theme-toggle .light-icon {
    display: flex;
}

[data-theme="light"] .theme-toggle .dark-icon {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        width: 40px;
    }
    
    .theme-toggle i {
        font-size: 16px;
    }
}

/* Add these styles for light theme specific adjustments */
[data-theme="light"] {
    /* Table styles */
    .rates-table thead {
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .rates-table-container {
        background: var(--card-bg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Calculator section */
    .calculator-section {
        background: var(--card-bg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Input fields */
    .amount-container input,
    .amount-container select {
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text);
    }

    /* Select dropdown */
    .amount-container select {
        background-color: var(--surface);
        color: var(--text);
        border: 1px solid var(--border);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 16px;
    }

    /* Exchange rate display */
    .exchange-rate {
        background: var(--surface);
        border: 1px solid var(--border);
    }

    /* Row hover effect */
    .clickable-row:hover {
        background: rgba(0, 0, 0, 0.02);
    }

    /* Footer */
    .footer {
        background: var(--card-bg);
        border-top: 1px solid var(--border);
    }

    /* Currency symbols in inputs */
    .input-currency {
        color: var(--text-secondary);
    }

    /* Labels */
    .amount-container label {
        color: var(--text-secondary);
    }

    /* Select dropdown options */
    .amount-container select option {
        background-color: var(--card-bg);
        color: var(--text);
        padding: 10px;
    }

    /* Select focus and hover states */
    .amount-container select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
    }

    .amount-container select:hover {
        border-color: var(--primary);
    }

    /* Calculator section background */
    .calculator-section {
        background: var(--card-bg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Input with currency wrapper */
    .input-with-currency {
        background: var(--surface);
        border-radius: 8px;
    }

    /* Row hover effect */
    .rates-table tbody tr:hover {
        background: rgba(0, 0, 0, 0.02);
    }

    /* Row clicked */
    .row-clicked {
        background: rgba(var(--primary-rgb), 0.05) !important;
    }
}

/* Footer link styles */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link i {
    color: var(--primary);
}

/* Animation for trend changes */
@keyframes trendChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.trend-changed {
    animation: trendChange 0.3s ease;
}

/* Header trend icons alignment */
.trend-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    height: 100%;
}

.trend-up-icon,
.trend-down-icon {
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trend column improvements */
.trend-column {
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

.trend-container {
    min-height: 42px; /* Match row height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-column i {
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure table cells have consistent height */
.rates-table td,
.rates-table th {
    height: 42px; /* Fixed height for all cells */
    vertical-align: middle;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .trend-header {
        min-height: 38px;
    }
    
    .trend-container {
        min-height: 38px;
    }

    .rates-table td,
    .rates-table th {
        height: 38px;
    }
}

/* Table header and cells base alignment */
.rates-table th,
.rates-table td {
    height: 46px; /* Increased height for better spacing */
    padding: 0 20px; /* Remove vertical padding, keep horizontal */
    vertical-align: middle;
    line-height: 1;
}

/* Trend column specific styles */
.rates-table th:nth-child(4),
.rates-table td:nth-child(4) {
    width: 46px; /* Fixed width for trend column */
    padding: 0;
    text-align: center;
}

/* Trend icons container */
.trend-container {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header trend icons */
.trend-header {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
}

.trend-up-icon,
.trend-down-icon {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trend column icons */
.trend-column {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-column i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .rates-table th,
    .rates-table td {
        height: 42px;
    }

    .trend-container,
    .trend-header,
    .trend-column {
        height: 42px;
    }

    .trend-up-icon,
    .trend-down-icon,
    .trend-column i {
        font-size: 13px;
    }
}

/* Add these styles to your exchange-styles.css file */

.tracking-code-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tracking-code-container h3 {
    font-size: 16px;
    color: var(--text);
    margin: 0;
}

.tracking-code-container p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

.tracking-code {
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    letter-spacing: 2px;
}

.tracking-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.action-button {
    padding: 8px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: var(--primary);
    color: white;
}

.action-link {
    padding: 8px 15px;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-link:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Updated styles for the Add to Portfolio button */
.portfolio-button-container {
    margin-top: 15px;
    text-align: right;
}

.portfolio-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.portfolio-action-button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.portfolio-action-button:active {
    transform: translateY(0);
}

/* Make the tracking code section more compact */
.tracking-code-section {
    margin-top: 15px;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: flex-end;
}

/* Light theme adjustments */
[data-theme="light"] .portfolio-action-button {
    background: var(--primary);
    color: white;
}

[data-theme="light"] .portfolio-action-button:hover {
    background: var(--primary-light);
}

/* Add to Portfolio button styling */
#add-to-portfolio-button {
    background-color: var(--success);
    border-color: var(--success);
}

#add-to-portfolio-button:hover {
    background-color: #0da271;
    transform: translateY(-1px);
}

#add-to-portfolio-button i {
    color: white;
}