/* css/trade-activity.css */

/* Specific styles for Individual Trade Items within Trade Activity sections */

.trade-item {
    background-color: #ffffff;  /* Light gray background */
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 0 15px; /* top: 20px, left: 15px */
    box-shadow: 0 4px 8px rgba(0,0,0,0.08); /* soft shadow */
    border: 1px solid #e0e0e0; /* light border */
}

.trade-item .profile-pic-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd; /* Light grey placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #888;
    overflow: hidden; /* Ensure image fits */
}

.trade-item .profile-pic-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.trade-item .service-name {
    font-size: 0.9em;
    color: #666;
}

.trade-item .actions {
    display: flex;
    gap: 10px;
}

.trade-item .action-button {
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none; /* Remove default button border */
}

.trade-item .action-button:active {
    transform: translateY(1px);
}

.trade-item .accept-button {
    background-color: #4CAF50; /* Green */
    color: white;
}

.trade-item .accept-button:hover {
    background-color: #45a049;
}

.trade-item .decline-button {
    background-color: #f44336; /* Red */
    color: white;
}

.trade-item .decline-button:hover {
    background-color: #da190b;
}

.trade-item .done-button {
    background-color: #007bff; /* Blue */
    color: white;
}

.trade-item .done-button:hover {
    background-color: #0056b3;
}

.trade-item .status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85em;
    color: white;
    text-transform: uppercase;
}

.trade-item .status-done, .trade-item .status-successful {
    background-color: #28a745; /* Green for done/successful */
}

.trade-item .status-pending {
    background-color: #ffc107; /* Yellow for pending */
    color: #333; /* Darker text for yellow background */
}

.trade-item .status-declined {
    background-color: #6c757d; /* Grey for declined */
}

/* Ensure messages for no items are centered and styled */
.no-items-message {
    text-align: center;
    padding: 30px;
    color: #777;
    font-size: 1.1em;
}

/* Modal overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

/* Modal content */
.modal-content {
    position: relative; /* para gumana yung absolute ng close button */
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Close button (X) */
.modal-content .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;  /* malaki */
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-content .close:hover {
    color: #000;
}

/* Modal title */
.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Stars */
.stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.star {
    font-size: 40px; /* make it bigger */
    color: #ccc;     /* default gray */
    cursor: pointer;
    transition: color 0.2s;
}

.star.selected {
    color: gold;     /* highlight gold */
}

/* Submit button */
#submitRating {
    background-color: #34d399; /* Green-500 */
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#submitRating:hover {
    background-color: #059669; /* darker green */
}

/* Dropdown (if used elsewhere) */
.categories-dropdown {
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.categories-dropdown:hover,
.categories-dropdown:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
    outline: none;
}

/* ⭐ USER RATING MODAL STARS */
.user-star {
    font-size: 40px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.user-star.selected {
    color: gold;
}

