@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

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

body {
  font-family: 'Jua', sans-serif;
  background: linear-gradient(to bottom right, #f8f9fd, #e8f4f8);
  min-height: 100vh;
  color: #2d3748;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(to bottom right, #f8f9fd, #e8f4f8);
  min-height: 100vh;
}

/* Header */
.header {
  padding: 24px 20px 16px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-icon:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  color: #7a8a9e;
}

.profile-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #a8e6cf, #7ec4cf);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.profile-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info p {
  font-size: 14px;
  color: #7a8a9e;
  margin: 0;
}

.user-info h2 {
  font-size: 18px;
  color: #2d3748;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  padding: 8px 16px;
  border-radius: 50px;
  background: linear-gradient(to right, #a8e6cf, #7ec4cf);
  color: white;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.btn-login:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-login svg {
  width: 16px;
  height: 16px;
}

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #ff7eb9;
  border-radius: 50%;
}

.survey-banner {
  width: 100%;
  background: linear-gradient(to right, #ffeaa7, #fdcb6e);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  border: none;
  text-align: left;
  transition: all 0.3s;
}

.survey-banner:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.survey-banner h1 {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 4px;
}

/* Quick Actions */
.quick-actions {
  padding: 0 20px 24px;
}

.quick-actions h3 {
  font-size: 16px;
  color: #2d3748;
  margin-bottom: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.action-item {
  background: white;
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.action-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.action-item p {
  font-size: 12px;
  color: #7a8a9e;
  margin: 0;
}

/* Policy Cards */
.policy-section {
  padding: 0 20px 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 16px;
  color: #2d3748;
  margin: 0;
}

.btn-text {
  font-size: 14px;
  color: #7ec4cf;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-text:hover {
  text-decoration: underline;
}

.policy-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.policy-scroll::-webkit-scrollbar {
  display: none;
}

.policy-card {
  background: white;
  border-radius: 24px;
  padding: 20px;
  min-width: 280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.policy-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.policy-category {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(to right, #a8e6cf, #7ec4cf);
  color: white;
  border-radius: 50px;
  font-size: 12px;
}

.policy-dday {
  padding: 4px 12px;
  background: #ff7eb9;
  color: white;
  border-radius: 50px;
  font-size: 12px;
}

.policy-card h4 {
  font-size: 16px;
  color: #2d3748;
  margin-bottom: 8px;
}

.policy-amount {
  font-size: 20px;
  color: #7ec4cf;
  margin-bottom: 12px;
}

.policy-comment {
  background: linear-gradient(to bottom right, #f8f9fd, #e8f4f8);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #7a8a9e;
}

.policy-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-label {
  font-size: 12px;
  color: #a0aec0;
}

.match-score {
  font-size: 16px;
  color: #7ec4cf;
  font-weight: bold;
}

/* Floating Home Button */
.floating-home {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #a8e6cf, #7ec4cf);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s;
}

.floating-home:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.floating-home svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Mobile Sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: left 0.3s;
  overflow-y: auto;
  box-shadow: 4px 0 12px rgba(0,0,0,0.1);
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 24px 20px;
  background: linear-gradient(to bottom right, #a8e6cf, #7ec4cf);
  color: white;
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-avatar svg {
  width: 24px;
  height: 24px;
  color: #7ec4cf;
}

.sidebar-nav {
  padding: 8px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #2d3748;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: 'Jua', sans-serif;
  font-size: 16px;
}

.nav-item:hover {
  background: #f8f9fd;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  color: #7a8a9e;
}

.nav-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

/* Search Bar */
.search-bar {
  padding: 0 20px 24px;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  border-radius: 50px;
  border: none;
  background: white;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-family: 'Jua', sans-serif;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

.filter-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #a8e6cf, #7ec4cf);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-btn svg {
  width: 18px;
  height: 18px;
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #2d3748;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-family: 'Jua', sans-serif;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #7ec4cf;
}

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

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  background: linear-gradient(to right, #a8e6cf, #7ec4cf);
  color: white;
  font-size: 16px;
  font-family: 'Jua', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  background: white;
  color: #7ec4cf;
  font-size: 16px;
  font-family: 'Jua', sans-serif;
  border: 2px solid #7ec4cf;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #f8f9fd;
}

/* Survey */
.survey-container {
  padding: 20px;
}

.survey-progress {
  margin-bottom: 32px;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #a8e6cf, #7ec4cf);
  transition: width 0.3s;
}

.progress-text {
  font-size: 14px;
  color: #7a8a9e;
  text-align: center;
}

.survey-question {
  background: white;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.question-title {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 20px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  padding: 16px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Jua', sans-serif;
  font-size: 14px;
  color: #2d3748;
}

.option-btn:hover {
  border-color: #7ec4cf;
  background: #f8f9fd;
}

.option-btn.selected {
  border-color: #7ec4cf;
  background: linear-gradient(to right, #a8e6cf, #7ec4cf);
  color: white;
}

/* Admin Dashboard */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(to bottom right, #f8f9fd, #e8f4f8);
  min-height: 100vh;
}

.admin-header {
  padding: 24px 20px 16px;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom right, #f8f9fd, #e8f4f8);
  z-index: 10;
  border-bottom: 1px solid #f0f4f8;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border-radius: 50px;
  border: none;
  font-family: 'Jua', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  color: #7a8a9e;
}

.tab-btn:hover {
  background: #f8f9fd;
}

.tab-btn.active {
  background: linear-gradient(to right, #a29bfe, #6c5ce7);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.stat-label {
  font-size: 14px;
  color: #a0aec0;
  margin-bottom: 4px;
}

.stat-value-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.stat-value {
  font-size: 24px;
  color: #2d3748;
}

.stat-change {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 50px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mt-4 {
  margin-top: 16px;
}

.p-4 {
  padding: 16px;
}

.p-5 {
  padding: 20px;
}

/* Responsive */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
