/**
 * KB Seller Payment Request - Front CSS
 *
 * @author    KnowBand
 * @copyright 2024
 */

/* Container */
.kbspr-container {
    padding: 15px 0;
}

/* Header */
.kbspr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.kbspr-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.kbspr-header-actions {
    display: flex;
    gap: 10px;
}

/* Balance Summary */
.kbspr-balance-summary {
    margin-bottom: 25px;
}

.kbspr-balance-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kbspr-balance-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.kbspr-balance-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.kbspr-balance-icon i {
    font-size: 20px;
    color: #fff;
}

.kbspr-balance-content h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.kbspr-balance-content p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

/* Request List */
.kbspr-requests-list {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.kbspr-requests-list .panel-heading {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 20px;
    font-weight: 600;
}

.kbspr-requests-list .panel-body {
    padding: 20px;
}

/* Payment Method Cards */
.kbspr-method-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.kbspr-method-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.kbspr-method-card.kbspr-method-default {
    border-color: #5cb85c;
    border-width: 2px;
}

.kbspr-method-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
}

.kbspr-method-icon {
    width: 40px;
    height: 40px;
    background: #5bc0de;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.kbspr-method-icon i {
    color: #fff;
    font-size: 18px;
}

.kbspr-method-type {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.kbspr-default-badge {
    background: #5cb85c;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.kbspr-method-body {
    padding: 15px;
}

.kbspr-method-body h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.kbspr-method-body p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.kbspr-method-body small {
    color: #999;
}

.kbspr-method-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    border-radius: 0 0 8px 8px;
    display: flex;
    gap: 5px;
}

/* Balance Info Alert */
.kbspr-balance-info {
    background: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kbspr-balance-info strong {
    font-size: 18px;
}

/* Panel Styles */
.kbspr-container .panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kbspr-container .panel-heading {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 20px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.kbspr-container .panel-body {
    padding: 20px;
}

/* Timeline */
.kbspr-timeline {
    position: relative;
    padding-left: 30px;
}

.kbspr-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
}

.kbspr-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.kbspr-timeline-item:last-child {
    padding-bottom: 0;
}

.kbspr-timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 3px;
    width: 12px;
    height: 12px;
    background: #5bc0de;
    border-radius: 50%;
    border: 2px solid #fff;
}

.kbspr-timeline-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.kbspr-timeline-content {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
}

.kbspr-timeline-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.kbspr-timeline-content p {
    margin: 5px 0;
    color: #666;
}

/* Pagination */
.kbspr-pagination {
    text-align: center;
    margin-top: 20px;
}

.kbspr-pagination .pagination {
    margin: 0;
}

/* Status Labels */
.kbspr-container .label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

/* Dashboard Widget */
.kbspr-dashboard-widget {
    margin-bottom: 20px;
}

.kbspr-widget-stat {
    text-align: center;
    padding: 10px 0;
}

.kbspr-widget-value {
    font-size: 20px;
    font-weight: 600;
}

.kbspr-widget-label {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

/* Form Styles */
.kbspr-container .form-horizontal .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.kbspr-container .form-horizontal .form-group::after {
    content: "";
    display: table;
    clear: both;
}

.kbspr-container .form-horizontal .control-label {
    padding-top: 7px;
    margin-bottom: 0;
    text-align: right;
    width: 25%;
    padding-right: 15px;
    font-weight: 600;
    color: #333;
}

.kbspr-container .form-horizontal .control-label.required::after {
    content: " *";
    color: #d9534f;
}

.kbspr-container .form-horizontal .col-sm-5 {
    width: 50%;
    padding-left: 15px;
}

.kbspr-container .form-horizontal .col-sm-offset-3 {
    margin-left: 25%;
}

.kbspr-container .form-control {
    border-radius: 4px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.kbspr-container .form-control:focus {
    border-color: #5bc0de;
    outline: none;
    box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.2);
}

.kbspr-container select.form-control {
    height: auto;
    padding: 8px 12px;
}

.kbspr-container textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.kbspr-container .help-block {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.kbspr-container .checkbox {
    margin: 0;
    padding-top: 7px;
}

.kbspr-container .checkbox label {
    font-weight: normal;
    cursor: pointer;
}

.kbspr-container .checkbox input[type="checkbox"] {
    margin-right: 8px;
}

/* Table Styles */
.kbspr-container .table {
    margin-bottom: 0;
}

.kbspr-container .table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
}

.kbspr-container .table td {
    vertical-align: middle;
}

/* Alert Messages */
.kbspr-container .alert {
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .kbspr-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .kbspr-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .kbspr-balance-box {
        flex-direction: column;
        text-align: center;
    }

    .kbspr-balance-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .kbspr-method-footer {
        flex-wrap: wrap;
    }

    .kbspr-method-footer .btn {
        flex: 1;
        min-width: auto;
    }

    .kbspr-container .table-responsive {
        border: none;
    }

    /* Form responsive */
    .kbspr-container .form-horizontal .form-group {
        flex-direction: column;
    }

    .kbspr-container .form-horizontal .control-label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .kbspr-container .form-horizontal .col-sm-5,
    .kbspr-container .form-horizontal .col-sm-offset-3 {
        width: 100%;
        padding-left: 0;
        margin-left: 0;
    }
}
