/* FEEDBACK BUTTON STYLES */
.feedback-circle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc00, #ffaa00);
    border: none;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-circle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
}

.feedback-circle-btn:active {
    transform: scale(0.95);
}

.feedback-circle-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-circle-btn i {
    font-size: 24px;
    color: #000;
    z-index: 2;
}

.feedback-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.6);
    animation: pulse-ring 2s infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* FEEDBACK OVERLAY STYLES */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1003;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.feedback-popup {
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: popup-appear 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* FEEDBACK HEADER */
.feedback-header {
    background: linear-gradient(to right, rgba(255, 204, 0, 0.9), rgba(255, 153, 0, 0.9));
    color: #000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.feedback-header h2 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-close-btn {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feedback-close-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg);
}

/* FEEDBACK CONTENT */
.feedback-content {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

@media (min-width: 992px) {
    .feedback-content {
        grid-template-columns: 1fr 1fr;
    }
}

.feedback-form-container,
.feedback-preview-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* FORM STYLES */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffcc00;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* RATING STARS */
.rating-stars {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.rating-stars i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #ffcc00;
    transform: scale(1.1);
}

/* FORM ACTIONS */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.feedback-submit-btn,
.feedback-clear-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.feedback-submit-btn {
    background: linear-gradient(to right, #ffcc00, #ffaa00);
    color: #000;
}

.feedback-submit-btn:hover {
    background: linear-gradient(to right, #ffaa00, #ff8800);
    transform: translateY(-2px);
}

.feedback-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.feedback-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* FEEDBACK PREVIEW */
.feedback-preview {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.feedback-preview h3 {
    margin: 0;
    color: #ffcc00;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

.preview-name {
    font-weight: 600;
    color: #ffcc00;
    font-size: 1.1rem;
}

.preview-rating i {
    color: rgba(255, 204, 0, 0.3);
    font-size: 16px;
    margin-left: 2px;
}

.preview-rating i.active-star {
    color: #ffcc00;
}

.preview-type {
    display: inline-block;
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.preview-message {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    padding: 10px 0;
    min-height: 60px;
    border-top: 1px solid rgba(255, 204, 0, 0.1);
    border-bottom: 1px solid rgba(255, 204, 0, 0.1);
    margin-bottom: 10px;
}

.preview-meta {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* SENT FEEDBACKS */
.sent-feedbacks {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 204, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 300px;
}

.sent-feedbacks h3 {
    margin: 0 0 15px 0;
    color: #ffcc00;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedback-item {
    background: rgba(255, 204, 0, 0.05);
    border: 1px solid rgba(255, 204, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.feedback-item:hover {
    background: rgba(255, 204, 0, 0.08);
    transform: translateX(5px);
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feedback-item-name {
    font-weight: 600;
    color: #ffcc00;
    font-size: 1rem;
}

.feedback-item-rating i {
    font-size: 14px;
    color: rgba(255, 204, 0, 0.3);
    margin-left: 1px;
}

.feedback-item-rating i.active-star {
    color: #ffcc00;
}

.feedback-item-type {
    display: inline-block;
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.feedback-item-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feedback-item-time {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-feedback-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.empty-feedback-list i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(255, 204, 0, 0.2);
}

.empty-feedback-list p {
    margin: 0;
    font-size: 0.9rem;
}

/* FEEDBACK FOOTER */
.feedback-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 204, 0, 0.1);
    text-align: center;
    flex-shrink: 0;
}

.feedback-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* SUCCESS MESSAGE */
.feedback-success-msg {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 200, 0, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1004;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease, slideOut 0.3s ease 4.7s;
}

.feedback-success-msg i {
    font-size: 2rem;
}

.feedback-success-msg h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.feedback-success-msg p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .feedback-circle-btn {
        width: 50px;
        height: 50px;
        top: 15px;
        left: 15px;
    }
    
    .feedback-circle-btn i {
        font-size: 20px;
    }
    
    .feedback-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .feedback-preview-container {
        max-height: 400px;
        overflow-y: auto;
    }
}