/* ========================================
   Currency Calculator Pro – Stylesheet
   calculator.net inspired design
   ======================================== */

.cc-wrapper {
    max-width: 700px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e0e4ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Header */
.cc-header {
    background: linear-gradient(135deg, #1a6fc4 0%, #0d4f9e 100%);
    padding: 28px 32px;
    text-align: center;
}

.cc-header-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.cc-title {
    margin: 0 0 6px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.3px;
}

.cc-subtitle {
    margin: 0 !important;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

/* Body */
.cc-body {
    padding: 28px 32px;
}

/* Labels */
.cc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin-bottom: 7px;
}

/* Amount input */
.cc-input-group {
    margin-bottom: 20px;
}

.cc-input-wrap {
    position: relative;
}

.cc-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.cc-input::-webkit-outer-spin-button,
.cc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cc-input:focus {
    border-color: #1a6fc4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26,111,196,0.12);
}

/* Currency row */
.cc-currency-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.cc-select-group {
    flex: 1;
}

.cc-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}

.cc-select:focus {
    border-color: #1a6fc4;
    box-shadow: 0 0 0 3px rgba(26,111,196,0.12);
}

/* Swap button */
.cc-swap-btn {
    flex-shrink: 0;
    width: 44px;
    height: 48px;
    padding: 0;
    background: #eef2ff;
    border: 2px solid #c7d2fe;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.cc-swap-btn svg {
    width: 20px;
    height: 20px;
    color: #1a6fc4;
}

.cc-swap-btn:hover {
    background: #1a6fc4;
    border-color: #1a6fc4;
}

.cc-swap-btn:hover svg {
    color: #ffffff;
}

/* Convert Button */
.cc-convert-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1a6fc4, #0d4f9e);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.cc-convert-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,111,196,0.4);
}

.cc-convert-btn:active {
    transform: translateY(0);
}

/* Result */
.cc-result {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    animation: cc-fadeIn 0.3s ease;
}

@keyframes cc-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cc-result-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cc-result-amount {
    font-size: 42px;
    font-weight: 800;
    color: #1a6fc4;
    line-height: 1;
    letter-spacing: -1px;
}

.cc-result-currency {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
}

.cc-result-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-result-dot {
    color: #d1d5db;
}

/* Rate Table */
.cc-table-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin: 0 0 12px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-table-scroll {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cc-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cc-rate-table thead {
    background: #f3f4f6;
}

.cc-rate-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.cc-rate-table td {
    padding: 10px 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.cc-rate-table tbody tr:hover {
    background: #f0f7ff;
}

.cc-rate-table tbody tr:last-child td {
    border-bottom: none;
}

.cc-rate-table .cc-currency-name {
    color: #6b7280;
    font-size: 12px;
    display: block;
}

/* Disclaimer */
.cc-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin: 16px 0 0 0 !important;
}

/* Responsive */
@media (max-width: 520px) {
    .cc-body { padding: 20px 18px; }
    .cc-header { padding: 22px 18px; }
    .cc-title { font-size: 20px !important; }
    .cc-result-amount { font-size: 32px; }
    .cc-currency-row { flex-direction: column; gap: 8px; }
    .cc-swap-btn { width: 100%; height: 40px; }
}
