/* Trade Approvals Section Styles - Matching Dashboard Design */

.approvals-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Settings Card */
.approval-settings-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.settings-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Tabs */
.approval-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 12px;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.15));
    color: #00FF88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Status styles */
.settings-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.settings-status.active {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00FF88;
}

.settings-status.inactive {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #FFC107;
}

/* Tab content */
.tab-content {
    animation: fadeIn 0.3s ease;
}

.approval-queue-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.approval-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.trade-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.detail-item label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.25rem;
}

.detail-item span {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.approval-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.approval-actions button {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-approve {
    background: linear-gradient(135deg, #00FF88, #00D4FF);
    color: #000;
}

.btn-reject {
    background: transparent;
    color: #FF3737;
    border: 1px solid #FF3737;
}

.btn-modify {
    background: transparent;
    color: #FFC107;
    border: 1px solid #FFC107;
}

/* Settings tab */
.settings-grid {
    display: grid;
    gap: 1.5rem;
}

.setting-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
}

.setting-section h4 {
    color: #00D4FF;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-label {
    color: rgba(255, 255, 255, 0.8);
}

.setting-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .approvals-wrapper {
        padding: 0 1rem;
    }

    .approval-settings-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .settings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .approval-tabs {
        padding: 0.25rem;
        gap: 0.25rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: fit-content;
    }

    .tab-btn .badge {
        padding: 0.1rem 0.3rem;
        font-size: 0.7rem;
    }

    /* Hide icons on mobile */
    .tab-btn span:first-child {
        display: none;
    }

    .trade-details {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .approval-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .approval-actions button {
        width: 100%;
        padding: 0.75rem;
    }

    .setting-section {
        padding: 1rem;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .setting-item .toggle-switch {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .trade-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .approval-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        overflow: visible;
    }

    .tab-btn {
        justify-content: center;
    }
}
