learnix / src /app /feedback /styles /Feedback.css
shashidharak99's picture
Upload files
7d51e81 verified
.feedback-container {
min-height: 100vh;
background: #f8fafc;
padding: 1rem;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}
.feedback-content {
max-width: 800px;
margin: 0 auto;
animation: fadeInUp 0.5s ease-out;
}
.feedback-header {
text-align: center;
margin-bottom: 2rem;
}
.feedback-title {
font-size: 2rem;
font-weight: 700;
color: #1e40af;
margin: 0 0 0.5rem 0;
}
.feedback-subtitle {
font-size: 1rem;
color: #64748b;
margin: 0;
font-weight: 400;
}
.privacy-notice {
display: flex;
align-items: center;
justify-content: center;
background: #dbeafe;
border: 1px solid #93c5fd;
border-radius: 8px;
padding: 1rem;
margin-bottom: 1.5rem;
gap: 0.75rem;
}
.privacy-icon {
font-size: 1.25rem;
}
.privacy-notice p {
margin: 0;
color: #1e40af;
font-weight: 500;
font-size: 0.9rem;
text-align: center;
}
.feedback-form {
background: white;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.input-group {
position: relative;
margin-bottom: 1rem;
}
.feedback-textarea {
width: 100%;
padding: 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 1rem;
font-family: inherit;
resize: vertical;
min-height: 100px;
transition: border-color 0.2s ease;
background: white;
color: #334155;
line-height: 1.5;
box-sizing: border-box;
}
.feedback-textarea:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.feedback-textarea::placeholder {
color: #94a3b8;
}
.char-counter {
position: absolute;
bottom: 0.5rem;
right: 0.75rem;
font-size: 0.75rem;
color: #64748b;
background: rgba(255, 255, 255, 0.9);
padding: 0.25rem 0.5rem;
border-radius: 4px;
}
.submit-btn {
background: #3b82f6;
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
min-width: 120px;
justify-content: center;
}
.submit-btn:hover:not(:disabled) {
background: #2563eb;
transform: translateY(-1px);
}
.submit-btn:disabled {
background: #94a3b8;
cursor: not-allowed;
transform: none;
}
.feedback-suggestions {
background: #fef3c7;
border-radius: 8px;
padding: 1.25rem;
margin-bottom: 2rem;
}
.success-message {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
background: #dcfce7;
border: 1px solid #86efac;
color: #166534;
padding: 1rem 1.5rem;
border-radius: 8px;
font-weight: 600;
font-size: 0.95rem;
margin-bottom: 1.5rem;
}
.success-message span {
font-size: 1.1rem;
}
.suggestions-title {
color: #92400e;
font-size: 1.1rem;
font-weight: 600;
margin: 0 0 0.75rem 0;
}
.suggestion-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.tag {
background: rgba(255, 255, 255, 0.8);
color: #92400e;
padding: 0.4rem 0.75rem;
border-radius: 16px;
font-size: 0.85rem;
font-weight: 500;
border: 1px solid rgba(146, 64, 14, 0.2);
}
.recent-feedbacks {
margin-top: 1rem;
}
.section-title {
font-size: 1.5rem;
font-weight: 700;
color: #1f2937;
margin: 0 0 1rem 0;
padding-bottom: 0.5rem;
border-bottom: 2px solid #fbbf24;
display: inline-block;
}
.feedbacks-loading {
display: flex;
justify-content: center;
padding: 2rem 0;
}
.preloader {
text-align: center;
}
.preloader-ring {
width: 40px;
height: 40px;
border: 3px solid #e2e8f0;
border-top: 3px solid #3b82f6;
border-radius: 50%;
margin: 0 auto 0.75rem;
animation: spin 1s linear infinite;
}
.preloader p {
color: #64748b;
font-weight: 500;
margin: 0;
font-size: 0.9rem;
}
.spinner {
width: 16px;
height: 16px;
border: 2px solid transparent;
border-top: 2px solid currentColor;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.spinner-small {
width: 20px;
height: 20px;
border: 2px solid #e2e8f0;
border-top: 2px solid #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.no-feedback {
text-align: center;
padding: 2rem;
color: #64748b;
}
.no-feedback-icon {
font-size: 2.5rem;
margin-bottom: 0.75rem;
opacity: 0.6;
}
.no-feedback p {
font-size: 1rem;
margin: 0;
}
.feedbacks-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.feedback-item {
background: white;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 1.25rem;
transition: all 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.feedback-item:hover {
border-color: #cbd5e1;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.feedback-content-text p {
margin: 0 0 0.75rem 0;
color: #334155;
font-size: 0.95rem;
line-height: 1.5;
}
.feedback-meta {
display: flex;
justify-content: flex-end;
align-items: center;
}
.time-ago {
color: #64748b;
font-size: 0.8rem;
font-weight: 500;
}
.loading-more {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 1.5rem 0;
color: #64748b;
}
.loading-more p {
margin: 0;
font-weight: 500;
font-size: 0.9rem;
}
.end-message {
text-align: center;
padding: 1.5rem 0;
color: #64748b;
border-top: 1px solid #e2e8f0;
margin-top: 1rem;
}
.end-message p {
margin: 0;
font-weight: 500;
font-size: 0.9rem;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Mobile Responsive */
@media (max-width: 768px) {
.feedback-container {
padding: 0.75rem;
}
.feedback-title {
font-size: 1.75rem;
}
.feedback-form {
padding: 1.25rem;
}
.feedback-suggestions {
padding: 1rem;
}
.suggestion-tags {
gap: 0.375rem;
}
.tag {
font-size: 0.8rem;
padding: 0.35rem 0.6rem;
}
.feedback-item {
padding: 1rem;
}
.feedback-textarea {
min-height: 80px;
padding: 0.875rem;
}
.submit-btn {
width: 100%;
padding: 0.875rem;
}
}
@media (max-width: 480px) {
.feedback-container {
padding: 0.5rem;
}
.feedback-title {
font-size: 1.5rem;
}
.feedback-subtitle {
font-size: 0.9rem;
}
.privacy-notice {
flex-direction: column;
text-align: center;
gap: 0.5rem;
}
.feedback-form {
padding: 1rem;
}
.feedback-suggestions {
padding: 0.875rem;
}
.suggestions-title {
font-size: 1rem;
}
.section-title {
font-size: 1.25rem;
}
}