/**
 * Sol Capital Markets - Native Portal UI Component
 * Exact match to solcapm.equalsconnect.com portal layout, fonts, and styling.
 * Razor-sharp 100% vector HTML/CSS with hover illumination on action buttons.
 */

.native-platform-dashboard {
    width: 100%;
    background: #ffffff;
    color: #212021;
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 0 36px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 1. Portal Header Bar */
.scm-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 16px 36px;
    border-bottom: 1px solid #e5e5e5;
}

.scm-portal-logo {
    display: flex;
    align-items: center;
}

.scm-portal-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.scm-portal-account {
    display: flex;
    align-items: center;
    gap: 16px;
}

.scm-user-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #212021;
    letter-spacing: 0.2px;
}

.scm-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 13px;
    cursor: pointer;
}

.scm-menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #212021;
    border-radius: 1px;
}

/* 2. Dashboard Inner Content */
.scm-dashboard-content {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 36px 36px;
    box-sizing: border-box;
}

.scm-dashboard-title-row {
    margin-bottom: 18px;
}

.scm-dashboard-heading {
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #212021;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

/* 3. Four Action Tiles */
.scm-action-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.scm-action-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: #212021;
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

/* User requirement: "just have like the buttons light up when hovering over them" */
.scm-action-tile:hover {
    border-color: #e59424;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(229, 148, 36, 0.38), 0 6px 18px rgba(0, 0, 0, 0.08);
}

.scm-action-tile:hover .scm-tile-icon-wrap {
    background: rgba(229, 148, 36, 0.12);
    box-shadow: 0 0 16px rgba(229, 148, 36, 0.4);
}

.scm-action-tile:hover .scm-tile-svg,
.scm-action-tile:hover .scm-tile-img {
    filter: drop-shadow(0 0 8px rgba(229, 148, 36, 0.7));
    transform: scale(1.06);
}

.scm-tile-icon-wrap {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.scm-tile-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    transition: all 0.25s ease;
}

.scm-tile-svg {
    width: 32px;
    height: 32px;
    stroke: #e59424;
    stroke-width: 2;
    transition: all 0.25s ease;
}

.scm-btn-svg-arrow {
    width: 10px;
    height: 9px;
    vertical-align: middle;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.scm-btn-gold:hover .scm-btn-svg-arrow,
.scm-btn-dark:hover .scm-btn-svg-arrow,
.scm-btn-gold-sm:hover .scm-btn-svg-arrow {
    transform: translateX(3px);
}

.scm-tile-text {
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.35;
    color: #212021;
}

/* 4. Calculator & Funds Two-Column Row */
.scm-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.scm-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.scm-card-header {
    padding: 16px 22px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.scm-card-title {
    font-family: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #212021;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.scm-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Currency Calculator Layout */
.scm-calc-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scm-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scm-calc-label {
    font-size: 13px;
    font-weight: 500;
    color: #212021;
    min-width: 50px;
}

.scm-calc-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.scm-calc-input {
    background: #f4f4f4;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 7px 12px;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #212021;
    width: 140px;
    outline: none;
    box-sizing: border-box;
}

.scm-calc-input:focus {
    border-color: #a87928;
    background: #ffffff;
}

.scm-currency-select {
    background: #f4f4f4;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #212021;
    cursor: pointer;
    user-select: none;
    min-width: 90px;
    justify-content: space-between;
}

.scm-flag-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.scm-fund-flag-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.scm-select-arrow {
    font-size: 9px;
    color: #666666;
    margin-left: 4px;
}

.scm-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}

.scm-rate-label {
    font-size: 13px;
    font-weight: 500;
    color: #212021;
}

.scm-rate-val {
    font-size: 14px;
    font-weight: 700;
    color: #212021;
}

.scm-refresh-row {
    text-align: right;
    margin-top: -4px;
    margin-bottom: 12px;
}

.scm-refresh-link {
    font-size: 11px;
    color: #a87928;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.scm-refresh-link:hover {
    text-decoration: underline;
}

.scm-calc-action {
    margin-top: auto;
}

.scm-btn-gold {
    display: block;
    width: 100%;
    text-align: center;
    background: #a87928;
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease;
}

.scm-btn-gold:hover {
    background: #93681f;
    transform: translateY(-1px);
}

/* Funds on Account Layout */
.scm-funds-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scm-funds-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scm-fund-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #212021;
    padding: 6px 0;
}

.scm-fund-amount {
    font-weight: 700;
    color: #212021;
    font-size: 15px;
}

.scm-fund-currency {
    font-weight: 600;
    color: #212021;
    font-size: 14px;
}

.scm-funds-action {
    margin-top: auto;
}

.scm-btn-dark {
    display: block;
    width: 100%;
    text-align: center;
    background: #212121;
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease;
}

.scm-btn-dark:hover {
    background: #333333;
    transform: translateY(-1px);
}

/* 5. Recent Transactions Card */
.scm-card-transactions {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 36px;
}

.scm-tx-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 22px 0;
    border-bottom: 1px solid #eaeaea;
}

.scm-tx-tab {
    background: transparent;
    border: none;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #212021;
    padding: 0 0 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scm-tx-tab.active {
    font-weight: 700;
    color: #212021;
    border-bottom: 2px solid #212021;
}

.scm-tx-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.scm-tx-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.scm-tx-table th {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #a87928;
    background: #ffffff;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: 0.2px;
}

.scm-tx-table td {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    color: #212021;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.scm-tx-table tr:hover td {
    background: #fafafa;
}

.scm-deal-no {
    font-weight: 700;
    color: #212021;
}

.scm-bought {
    font-weight: 700;
    color: #108043;
}

.scm-sold {
    font-weight: 700;
    color: #212021;
}

.scm-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.scm-status-pill.green {
    background: #e8f5e9;
    color: #2e7d32;
}

.scm-tx-footer {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 6px 6px;
}

.scm-btn-gold-sm {
    display: inline-block;
    background: #a87928;
    color: #ffffff !important;
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.scm-btn-gold-sm:hover {
    background: #93681f;
}

/* 6. Authentic Portal Footer */
.scm-portal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 36px 12px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    font-size: 11.5px;
    color: #666666;
    line-height: 1.6;
    background: #ffffff;
}

.scm-footer-col-title {
    font-family: 'Encode Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #212021;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.scm-footer-text {
    margin: 0 0 8px 0;
}

.scm-footer-highlight {
    color: #a87928;
    font-weight: 600;
}

.scm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scm-footer-links a {
    color: #666666;
    text-decoration: none;
}

.scm-footer-links a:hover {
    color: #212021;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .scm-action-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .scm-cards-row {
        grid-template-columns: 1fr;
    }
    .scm-portal-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .scm-portal-header {
        padding: 12px 18px;
    }
    .scm-dashboard-content {
        padding: 16px 16px 24px;
    }
    .scm-action-tiles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .scm-action-tile {
        padding: 12px 16px;
    }
    .scm-card-body {
        padding: 18px 16px;
    }
    .scm-portal-account .scm-user-name {
        font-size: 12px;
    }
    .scm-portal-footer {
        padding: 20px 16px;
    }
}
