/* ================================================================================================================================ */
/* ============================================== PAGE AVIS (avis.html) =========================================================== */
/* ================================================================================================================================ */

.reviews-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.reviews-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-button.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.eligible-rides-list {
    display: grid;
    gap: 20px;
}

.ride-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ride-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ride-route {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ride-date {
    color: #666;
    font-size: 14px;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rate-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.rate-button:hover {
    background: #45a049;
}

.rating-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.rating-modal.active {
    display: flex;
}

.rating-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.rating-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rating-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.rating-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-label {
    font-weight: 500;
    color: #333;
}

.star-rating {
    display: flex;
    gap: 8px;
    font-size: 32px;
}

.star {
    cursor: pointer;
    color: #ddd !important;
    transition: color 0.2s;
    filter: grayscale(100%);
}

.star.active {
    color: #ffc107 !important;
    filter: grayscale(0%);
}

.star:hover {
    color: #ffc107 !important;
    filter: grayscale(0%);
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.submit-review-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.submit-review-btn:hover {
    background: #45a049;
}

.my-reviews-list {
    display: grid;
    gap: 20px;
}

.review-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.review-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.review-type i {
    color: #4CAF50;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-ride-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.review-ride-info i {
    color: #4CAF50;
}

.review-ratings {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.rating-label {
    color: #666;
    min-width: 120px;
}

.rating-stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.review-comment {
    background: #f9f9f9;
    border-left: 3px solid #4CAF50;
    padding: 12px 15px;
    border-radius: 8px;
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

.review-comment i {
    color: #4CAF50;
    margin-right: 8px;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-reviews-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
