/*
 * c2c.css
 * Styling for C2C UI components.
 */

#wc-c2c-ui-container {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.wc-c2c-progress-container {
    background: #e9ecef;
    border-radius: 4px;
    height: 10px;
    width: 100%;
    margin-bottom: 5px;
    overflow: hidden;
}

.wc-c2c-progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease, background-color 0.3s ease;
}

#wc-c2c-progress-text {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 15px;
    display: block;
}

/* Error Box */
#wc-c2c-form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Form Styles */
#wc-c2c-receipt-form {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

#wc-c2c-receipt-form .form-row {
    margin-bottom: 15px;
}

#wc-c2c-receipt-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

#wc-c2c-receipt-form input[type="text"],
#wc-c2c-receipt-form input[type="number"],
#wc-c2c-receipt-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#wc-c2c-submit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#wc-c2c-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Receipts List */
.c2c-receipts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.c2c-receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.c2c-receipt-item:last-child {
    border-bottom: none;
}

.c2c-receipt-details strong {
    display: block;
    margin-bottom: 3px;
}

.c2c-receipt-details span {
    display: block;
    font-size: 0.9em;
    color: #555;
}

/* Badges */
.c2c-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
}

.c2c-badge-pending {
    background-color: #ffc107;
    color: #212529;
}

.c2c-badge-approved {
    background-color: #28a745;
}

.c2c-badge-rejected {
    background-color: #dc3545;
}

.c2c-btn-delete {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8em;
    margin-right: 10px;
}

.c2c-btn-delete:hover {
    background: #dc3545;
    color: #fff;
}
