body {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  background-color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
}

.background-clouds {
  display: block;
  position: fixed;
  top: -5vh;
  left: -5vw;
  width: 110vw;
  height: 110vh;
  z-index: 0;
  background: url('../Sky.png') center center / cover no-repeat;
  pointer-events: none;
}

.sidebar {
  width: 400px;
  background: url('../Sidebar.png') center center / 100% 100% no-repeat;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  height: 88vh;
}

.layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1800px;
  width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  margin: 20px;
  flex-grow: 1;
  padding: 20px;
  background: url('../Page.png') center center / 100% 100% no-repeat;
  border: none;
  min-height: 90vh;
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
  min-height: 100%;
  overflow-y: visible;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.logo-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}
.logo-text-img {
  height: 50px;
  width: auto;
}

.nav-buttons {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-auth-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nav-auth-buttons .nav-btn {
  width: 100%;
  padding: 8px 45px;
  font-size: 1rem;
}

.nav-btn {
  width: 100%;
  padding: 12px 0; /* Homepage-style compact padding */
  font-size: 1rem; /* Homepage-style font size */
  font-family: 'Baloo 2', cursive;
  border: none !important;
  border-radius: 10px;
  background: url('../GreyButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  cursor: none !important;
  outline: none !important;
  text-shadow: 
    -0.5px -0.5px 0 #000,
    0.5px -0.5px 0 #000,
    -0.5px 0.5px 0 #000,
    0.5px 0.5px 0 #000,
    0 0 1px rgba(0, 0, 0, 0.8) !important;
  -webkit-text-stroke: 0.4px #000 !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease;
}

.nav-btn.active, 
.nav-btn:hover,
.nav-btn.active:focus,
.nav-btn:hover:focus,
.nav-btn.active:focus-visible,
.nav-btn:hover:focus-visible {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
  transform: translateY(-1px);
  outline: none !important;
  text-shadow: 
    -0.5px -0.5px 0 #000,
    0.5px -0.5px 0 #000,
    -0.5px 0.5px 0 #000,
    0.5px 0.5px 0 #000,
    0 0 1px rgba(0, 0, 0, 0.8) !important;
  -webkit-text-stroke: 0.4px #000 !important;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
}

.nav-auth-buttons .nav-btn:hover {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
}

.greeting-avatar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.greeting {
  font-size: 2.5rem;
  color: #000;
  margin: 0;
}
.username {
  color: #000;
}

.avatar-edit-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
}
.avatar-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-text {
  position: absolute;
  bottom: 5px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 4px;
}


.featured-projects h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 25px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}
.project-card {
  background: #fff;
  border: 3px solid #000;
  padding: 5px;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1200px) {
  .sidebar {
    width: 300px;
  }
  .greeting {
    font-size: 2.2rem;
  }
  .featured-projects h2 {
    font-size: 1.6rem;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .layout-wrapper {
    flex-direction: column;
    height: auto;
    width: 100%;
    gap: 0;
  }
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  .logo {
    margin-bottom: 0;
  }
  .logo-text {
    font-size: 1.5rem;
  }
  .nav-buttons {
    flex-direction: row;
    width: auto;
    gap: 8px;
    align-items: center;
  }
  .nav-btn {
    padding: 10px 15px;
    font-size: 1rem;
    white-space: nowrap;
  }
  .nav-auth-buttons {
    display: contents;
  }
  .container {
    width: 100%;
    min-height: auto;
    border-radius: 0;
  }
  .main-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .greeting-avatar {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }
  .greeting {
    font-size: 1.8rem;
  }
  .sidebar {
    padding: 10px;
  }
  .logo-img {
      display: none;
  }
  .nav-buttons {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
  }
  .nav-buttons::-webkit-scrollbar { 
    display: none; /* Safari and Chrome */
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }
  .greeting {
    font-size: 1.5rem;
  }
  .featured-projects h2 {
    font-size: 1.3rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
} 

/* Auth Box - Skeuomorphic */
.auth-box {
  background: linear-gradient(145deg, #f9fafb, #f3f4f6);
  padding: 40px 50px;
  border-radius: 24px;
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.12),
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.08);
  border: 2px solid #d4d4d4;
  text-align: center;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: slideUp 0.5s ease-out;
}

.auth-box::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
  border-radius: 24px 24px 0 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  margin-bottom: 35px;
}

.auth-box h1 {
    margin-bottom: 8px;
    font-size: 2.2em;
    color: #374151;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.auth-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

/* Input Wrapper - Skeuomorphic */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 1.2rem;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
  transform: scale(1.1);
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="date"] {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #d4d4d4;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  font-size: 1rem;
  font-family: 'Baloo 2', cursive;
  color: #374151;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.06),
    0 1px 0 rgba(255,255,255,0.8);
  outline: none;
}

.auth-box input[type="text"]:focus,
.auth-box input[type="email"]:focus,
.auth-box input[type="password"]:focus,
.auth-box input[type="date"]:focus {
  border-color: #3b82f6;
  background: linear-gradient(145deg, #ffffff, #f0f9ff);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.06),
    0 1px 0 rgba(255,255,255,0.8),
    0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.auth-box input[type="text"]:valid,
.auth-box input[type="email"]:valid {
  border-color: #10b981;
}

.input-check {
  position: absolute;
  right: 16px;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.input-wrapper:has(input:valid) .input-check {
  opacity: 1;
  transform: scale(1);
}

.input-wrapper:has(input:valid) .input-check::before {
  content: '✓';
  color: #10b981;
}

.input-info {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
  display: none;
}

.form-group:has(#password:focus) .password-strength,
.form-group:has(#password:not(:placeholder-shown)) .password-strength {
  display: block;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(145deg, #e5e7eb, #d1d5db);
  margin-bottom: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
}

.strength-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  transition: width 0.3s ease;
}

.password-strength.weak .strength-bar::after {
  width: 33%;
  background: #ef4444;
}

.password-strength.medium .strength-bar::after {
  width: 66%;
  background: #f59e0b;
}

.password-strength.strong .strength-bar::after {
  width: 100%;
  background: #10b981;
}

.strength-text {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.password-strength.weak .strength-text {
  color: #ef4444;
}

.password-strength.medium .strength-text {
  color: #f59e0b;
}

.password-strength.strong .strength-text {
  color: #10b981;
}

/* Password Match Indicator */
.password-match {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 20px;
  transition: all 0.3s ease;
}

.password-match.match {
  color: #10b981;
}

.password-match.no-match {
  color: #ef4444;
}

.password-match::before {
  content: '✓ Passwords match';
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-match.match::before {
  opacity: 1;
  content: '✓ Passwords match';
}

.password-match.no-match::before {
  opacity: 1;
  content: '✗ Passwords do not match';
}

/* Form Bonus */
.form-bonus {
  background: linear-gradient(145deg, #fef3c7, #fde68a);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.1),
    inset 0 1px 2px rgba(255,255,255,0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.bonus-icon {
  font-size: 1.5rem;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.bonus-text {
  color: #92400e;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.bonus-text strong {
  color: #78350f;
  font-weight: 700;
}

/* Auth Button - Enhanced Skeuomorphic */
.auth-btn {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    font-size: 1.1em;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 
      0 4px 8px rgba(59, 130, 246, 0.3),
      inset 0 1px 2px rgba(255,255,255,0.3),
      inset 0 -1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 6px 12px rgba(59, 130, 246, 0.4),
      inset 0 1px 2px rgba(255,255,255,0.4),
      inset 0 -1px 2px rgba(0,0,0,0.2);
    border-color: #2563eb;
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 
      0 2px 4px rgba(59, 130, 246, 0.3),
      inset 0 2px 4px rgba(0,0,0,0.1);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-btn.loading .btn-text {
  opacity: 0.7;
}

.auth-btn.loading .btn-loader {
  display: block;
}

.auth-footer {
    margin-top: 24px;
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-box a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-box a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Success Animation */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 
      0 8px 24px rgba(16, 185, 129, 0.3),
      inset 0 2px 4px rgba(255,255,255,0.8),
      inset 0 -2px 4px rgba(0,0,0,0.08);
  }
  100% {
    transform: scale(1);
  }
}

/* Error Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Responsive adjustments for signup form */
@media (max-width: 600px) {
  .auth-box {
    padding: 30px 25px;
    max-width: 100%;
  }
  
  .auth-box h1 {
    font-size: 1.8em;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
}

/* Referral Notification Container - Skeuomorphic */
.referral-notification {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 2px solid #d4d4d4;
    border-radius: 12px;
    padding: 18px 25px;
    margin-bottom: 25px;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.12),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.referral-notification::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
    border-radius: 12px 12px 0 0;
}

.referral-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.referral-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.referral-text {
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    line-height: 1.5;
    flex: 1;
}

.referral-text strong {
    color: #1e293b;
    font-weight: 700;
} 