﻿.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.auth-header-nav .btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
}

.auth-header-nav .btn {
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

    .auth-header-nav .btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.6);
        color: white;
    }

#loginSection, #registerSection, #reviewSection {
    transition: all 0.3s ease-in-out;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

    .star-rating .star:hover,
    .star-rating .star.active {
        color: #ffc107;
    }

.modal-content {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px; /* pill shape */
    display: inline-flex;
    align-items: center;
    gap: 8px; /* space between text and icon */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }

    .btn-gradient svg {
        width: 16px;
        height: 16px;
        fill: white;
    }ont-size: 16px; /* arrow size */
    }
.star-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 5px;
}

    .star.active,
    .star:hover {
        color: #ffc107;
    }

.review-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .review-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

.review-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 5px;
}

.review-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.helpful-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .helpful-btn:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
    }

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
}

    .btn-primary-custom:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        transform: translateY(-1px);
    }

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.pending-badge {
    background: #ffc107;
    color: #000;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-pending {
    background: #ffc107;
}

.status-approved {
    background: #28a745;
}

.status-rejected {
    background: #dc3545;
}

.write-review-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

    .write-review-btn:hover {
        transform: scale(1.1);
    }

.review-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.rating-bars {
    margin-top: 15px;
    width: 100%;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.rating-bar-bg {
    flex: 1; /* Available space le lega */
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 8px;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.star-rating-wrapper {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.star {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 2px;
}

    .star:hover,
    .star.active {
        color: #ffc107;
    }

.rating-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#charCount {
    font-weight: 500;
    color: #0d6efd;
}

.default-user-img {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 5px;
}

    .star:hover {
        color: #ffc107;
        transform: scale(1.1);
    }

    .star.active {
        color: #ffc107;
    }

        .star.active:hover {
            transform: scale(1.2);
        }

/* Character Counter Colors */
.char-count-warning {
    color: #fd7e14 !important;
}

.char-count-danger {
    color: #dc3545 !important;
}

.char-count-success {
    color: #198754 !important;
}

/* Loading Button */
.btn-loading {
    position: relative;
    pointer-events: none;
}

    .btn-loading .btn-text {
        opacity: 0;
    }

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 2px solid transparent;
        border-top: 2px solid #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error shake animation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}
