/* --- Main Wrapper --- */
.acp-converter-wrapper {
    max-width: 550px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: sans-serif;
    border: 1px solid #e9ecef;
}

/* --- Header --- */
.acp-header {
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}
.acp-header h2 {
    margin: 0;
    font-size: 20px;
    color: #343a40;
    text-align: center;
}

/* --- Body --- */
.acp-body {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Currency Panel --- */
.acp-panel {
    width: 100%;
}
.acp-panel label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* --- Input Group (Flag, Select, Amount) --- */
.acp-input-group {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.acp-input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* --- Select Wrapper (Flag, Select) --- */
.acp-select-wrapper {
    display: flex;
    align-items: center;
    padding-left: 12px;
    border-right: 1px solid #ced4da;
    background-color: #f8f9fa;
}
.acp-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
}
.acp-select-wrapper select {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 10px 12px 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.acp-select-wrapper select:focus {
    outline: none;
}

/* --- Amount Input --- */
.acp-amount-input {
    width: 100%;
    border: none;
    padding: 12px 15px;
    font-size: 24px;
    font-weight: 600;
    text-align: right;
    color: #495057;
}
.acp-amount-input:focus {
    outline: none;
}
.acp-amount-input[readonly] {
    background-color: #fff;
}

/* --- Swap Button --- */
.acp-swap-button-wrapper {
    display: flex;
    justify-content: center;
    margin: -10px 0;
}
#acp-swap-button {
    width: 44px;
    height: 44px;
    border: 1px solid #ced4da;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
#acp-swap-button:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
#acp-swap-button svg {
    width: 22px;
    height: 22px;
    color: #007bff;
}

/* --- Footer --- */
.acp-footer {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
#acp-rate-display {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* --- Error Message --- */
.acp-error {
    text-align: center;
    color: #dc3545;
    background-color: #f8d7da;
    padding: 15px;
    border-radius: 8px;
}
