* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --positive-color: #48bb78;
    --negative-color: #f56565;
    --neutral-color: #a0aec0;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-user {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.features {
    background: white;
    padding: 4rem 0;
    margin-top: 3rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.feedback-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.feedback-card {
    width: 100%;
    max-width: 700px;
}

.card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.card-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 2rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.3s ease;
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-primary);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #feebc8;
    color: #7c2d12;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid var(--info-color);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.positive {
    border-left: 4px solid var(--positive-color);
}

.stat-card.negative {
    border-left: 4px solid var(--negative-color);
}

.stat-card.neutral {
    border-left: 4px solid var(--neutral-color);
}

.stat-icon {
    font-size: 3rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.section-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.section-header h2 {
    color: var(--text-primary);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.feedback-item {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-positive {
    background: #c6f6d5;
    color: #22543d;
}

.badge-negative {
    background: #fed7d7;
    color: #742a2a;
}

.badge-neutral {
    background: #e2e8f0;
    color: #2d3748;
}

.feedback-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.feedback-user {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feedback-category {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.feedback-rating {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feedback-message {
    color: var(--text-primary);
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    line-height: 1.6;
}

.feedback-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.feedback-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.text-muted {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.chart-card canvas {
    max-height: 300px;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
    }
    
    .feedback-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}


.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    overflow-x: auto;
}

.chart-card canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}

.section-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.section-header h2 {
    font-size: 1.8rem;
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-header {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        padding: 1rem;
    }

    .chart-card h3 {
        font-size: 1rem;
    }

    .chart-card canvas {
        max-height: 220px !important;
    }
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.feedback-item {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 480px) {
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feedback-item {
        padding: 1rem;
    }

    .feedback-message {
        font-size: 0.95rem;
    }
}



@media (max-width: 768px) {
    .footer {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    background-color: #f9fafb;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    align-items: center;
}

.filter-item {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #4a5568;
}

.filter-item label {
    margin-bottom: 6px;
    font-weight: 600;
}

.filter-item select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item select:hover,
.filter-item select:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102,126,234,0.3);
    outline: none;
}

.nav-brand {
    display: flex;
    align-items: center; 
    gap: 4px;           
}

.nav-brand img {
    width: 100px;        
    height: 100px;
    object-fit: contain; 
}

.nav-brand a {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}


.contact-section {
  background: #f8f9fa;
  padding: 40px 20px;
  border-top: 2px solid #e0e0e0;
  margin-top: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: start;
}

.contact-section {
  background: #f8f9fa;
  padding: 50px 20px;
  border-top: 2px solid #e0e0e0;
  margin-top: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 25px;
  text-align: center;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

.contact-card p {
  color: #555;
  margin: 6px 0;
  font-size: 15px;
}

.contact-card a {
  color: #007BFF;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.social-links img {
  width: 32px;
  height: 32px;
  filter: invert(40%) sepia(20%) saturate(800%) hue-rotate(180deg);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.social-links img:hover {
  transform: scale(1.15);
  filter: invert(15%) sepia(90%) saturate(5000%) hue-rotate(210deg);
}

.how-it-works {
  background: #f9fafb;
  padding: 60px 20px;
  border-top: 2px solid #e0e0e0;
  margin-top: 40px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
  font-weight: 600;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.how-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 25px;
  text-align: center;
  width: 100%;
  height: 230px; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.how-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  height: auto;
  min-height: 230px;
  z-index: 10;
}

.how-card h3 {
  margin-bottom: 15px;
  color: #222;
  font-size: 1.2rem;
}

.how-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;
  transition: all 0.3s ease;
}

.how-card:hover p {
  -webkit-line-clamp: unset; 
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}


.how-it-works {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.how-it-works .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.how-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s;
}

.how-card:hover {
    transform: translateY(-5px);
}

.how-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.how-card h3 img {
    margin-right: 10px;
}

.how-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}



.contact-section {
    padding: 60px 20px;
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.contact-card {
    background-color: #f7f7f7;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-card h3 img {
    margin-right: 10px;
}

.contact-card p {
    font-size: 0.95rem;
    margin: 5px 0;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.social-links a img {
    width: 25px;
    height: 25px;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.social-links a:hover img {
    filter: none;
    transform: scale(1.1);
}


.footer {
    padding: 20px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-secondary);
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}
