/**
* Swapmaster Exchange Office - Flex Table Styles
* Custom table layout for currency exchange rates display
*/

/*--------------------------------------------------------------
# Base Table Styles
--------------------------------------------------------------*/
.flex-table {
    color: #fff;
    padding: 0px 30px 0px 30px;
    user-select: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* First table margin */
.flex-table:nth-child(1){
    margin-bottom: 15px;
}

/* Table header styling */
.flex-table-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #fff;
    font-weight: bold;
    height: 40px;
    transition: height 0.3s ease;
}

/* Table header items */
.flex-table-header-item {
    width: 33.3%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Special width for rates column in header */
.flex-table-header-item.rates {
    width: 60%;
}

/* Table body container */
.flex-table-body {
    display: flex;
    flex-direction: column;
}

/* Table rows */
.flex-table-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    transition: background 0.3s;
}

/* Table row hover effect */
.flex-table-row:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Alternating row background */
.flex-table-row:nth-child(even) {
    background-color: rgba(0, 30, 84, 0.3);
}

/* Table row items/cells */
.flex-table-row-item {
    width: 33.3%;
    display: flex;
    justify-content: center;
    height: 40px;
    align-items: center;
    transition: height 0.3s ease;
}

/* Special width for rates column in rows */
.flex-table-row-item.rates {
    width: 60%;
}

/* Currency icons in table cells */
.flex-table-row-item img {
    margin-right: 8px;
    width: 22px;
    transition: all 0.3s ease;
}

/* Add card-footer styles to the base styles */
.card-footer {
    font-size: 14px;
    padding: 10px 15px;
    color: rgba(108, 117, 125, 0.8);
    font-weight: 400;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.update-label {
    font-weight: 500;
    color: rgba(108, 117, 125, 0.9);
    margin-right: 5px;
}

.update-time {
    font-weight: 400;
    color: rgba(108, 117, 125, 0.8);
}

/*--------------------------------------------------------------
# Special Resolution Styles
--------------------------------------------------------------*/

/* Styling for 1080x1800px resolution */
@media only screen and (width: 1080px) and (min-height: 1700px) and (max-height: 1900px) and (orientation: portrait) {
    .flex-table {
        font-size: 28px !important;
        padding: 0px 30px;
        font-weight: 500;
    }
    
    .flex-table-row-item img {
        margin-right: 15px;
        width: 40px;
    }
    
    .flex-table-header {
        height: 70px;
        font-weight: 600;
    }
    
    .flex-table-row-item {
        height: 70px;
        letter-spacing: 0.4px;
    }
    
    .flex-table-row-item:first-child {
        font-weight: 500;
    }
    
    .flex-table-row-item:not(:first-child) {
        font-weight: 600;
    }
    
    .card-footer {
        font-size: 18px;
        padding: 12px 15px;
    }
}