/* My Listings Table Styles */
.iyg-my-listings-wrapper {
    margin: 20px 0;
}

.iyg-my-listings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.iyg-my-listings-table th,
.iyg-my-listings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.iyg-my-listings-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.iyg-my-listings-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Image Column */
.iyg-my-listings-table .listing-image img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

.iyg-my-listings-table .no-image {
    display: inline-block;
    width: 80px;
    height: 60px;
    background-color: #e9ecef;
    border-radius: 4px;
    text-align: center;
    line-height: 60px;
    font-size: 11px;
    color: #6c757d;
}

/* Title Column */
.iyg-my-listings-table .listing-title a {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
}

.iyg-my-listings-table .listing-title a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Status Column */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-submitted {
    background-color: #ffc107;
    color: #000;
}

.status-badge.status-under-review {
    background-color: #17a2b8;
    color: #fff;
}

.status-badge.status-started {
    background-color: #28a745;
    color: #fff;
}

.status-badge.status-scheduled {
    background-color: #6c757d;
    color: #fff;
}

.status-badge.status-ended {
    background-color: #dc3545;
    color: #fff;
}

/* Reserve Price Column */
.listing-reserve .reserve-met {
    display: block;
    color: #28a745;
    font-size: 11px;
    font-weight: 600;
}

.listing-reserve .reserve-not-met {
    display: block;
    color: #dc3545;
    font-size: 11px;
    font-weight: 600;
}

.listing-reserve .no-reserve {
    color: #6c757d;
    font-style: italic;
}

/* Current Bid Column */
.listing-current-bid .no-bids {
    color: #6c757d;
    font-style: italic;
}

/* Actions Column */
.iyg-lower-reserve-btn,
.listing-actions .button {
    padding: 8px 16px;
    margin-bottom: 10px !important;
    font-size: 13px !important;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.iyg-lower-reserve-btn:hover,
.listing-actions .button:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Modal Styles */
.iyg-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.iyg-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.iyg-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
}

.iyg-modal-close:hover,
.iyg-modal-close:focus {
    color: #000;
}

#iyg-lower-reserve-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

#iyg-lower-reserve-modal p {
    margin-bottom: 20px;
    color: #666;
}

#iyg-lower-reserve-form .form-field {
    margin-bottom: 20px;
}

#iyg-lower-reserve-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#iyg-lower-reserve-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Reserve Price Control */
.reserve-price-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.reserve-price-display {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
    min-width: 150px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 6px;
    text-align: center;
}

.reserve-decrease-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reserve-decrease-btn:hover:not(:disabled) {
    background-color: #c82333;
    color: #fff;
}

.reserve-decrease-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.reserve-decrease-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

#iyg-lower-reserve-form .form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

#iyg-lower-reserve-form input[type="checkbox"] {
    margin-right: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.form-actions .button-primary {
    background-color: #007bff;
    color: #fff;
}

.form-actions .button-primary:hover {
    background-color: #0056b3;
}

.form-actions .iyg-modal-cancel {
    background-color: #6c757d;
    color: #fff;
}

.form-actions .iyg-modal-cancel:hover {
    background-color: #5a6268;
}

/* Message Styles */
.iyg-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
}

.iyg-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.iyg-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .iyg-my-listings-table {
        border: 0;
    }
    
    .iyg-my-listings-table thead {
        display: none;
    }
    
    .iyg-my-listings-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
    }
    
    .iyg-my-listings-table td {
        display: block;
        text-align: right;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .iyg-my-listings-table td:last-child {
        border-bottom: 0;
    }
    
    .iyg-my-listings-table td:before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    .iyg-my-listings-table .listing-image {
        text-align: center;
    }
    
    .iyg-my-listings-table .listing-image:before {
        display: none;
    }
    
    .iyg-modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
    
    .reserve-price-control {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .reserve-price-display {
        font-size: 28px;
        width: 100%;
    }
    
    .reserve-decrease-btn {
        width: 100%;
        justify-content: center;
    }
}
