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

.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 controlled by universal style.css rule (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;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from center to flex-start */
  text-align: center;
  width: 100%;
  max-height: 90vh; /* Limit height to viewport */
  overflow-y: auto; /* Make it scrollable */
  padding: 20px 0; /* Add some padding for scrolling */
}

.fun-subtitle {
  margin: 6px 0 10px;
  font-size: 1rem;
  color: #0b3d66;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.7);
}

.create-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
}

.create-steps .step {
  padding: 10px 18px;
  border-radius: 15px;
  background: 
    linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 50%, #d0d0d0 100%);
  border: 3px solid;
  border-color: #c0c0c0 #f5f5f5 #f5f5f5 #c0c0c0;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.2),
    0 2px 4px rgba(0,0,0,0.15),
    inset 0 2px 3px rgba(255,255,255,0.8),
    inset 0 -2px 3px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
  font-size: 0.9rem;
  color: #0b3d66;
  font-weight: bold;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.8),
    0 -1px 0 rgba(0,0,0,0.1);
  position: relative;
  transition: all 0.2s ease;
}

.create-steps .step.active {
  background: 
    linear-gradient(145deg, #b3d9ff 0%, #80c5ff 50%, #4da6ff 100%);
  border-color: #66b3ff #cce6ff #cce6ff #66b3ff;
  box-shadow: 
    0 6px 12px rgba(77,166,255,0.4),
    0 3px 6px rgba(77,166,255,0.3),
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -2px 3px rgba(0,102,204,0.2),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transform: translateY(-2px);
  color: #003366;
}

/* Create Segment Styles - Skeuomorphic */
.create-segment {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  padding: 35px;
  background: 
    linear-gradient(145deg, #ffffff 0%, #f5f5f5 50%, #e8e8e8 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,0.1) 10px,
      rgba(255,255,255,0.1) 20px
    );
  border-radius: 20px;
  border: 4px solid;
  border-color: #d0d0d0 #f0f0f0 #f0f0f0 #d0d0d0;
  box-shadow: 
    /* Outer shadow - raised effect */
    0 20px 40px rgba(0,0,0,0.3),
    0 10px 20px rgba(0,0,0,0.2),
    /* Inner shadow - recessed effect */
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    /* Top highlight */
    inset 0 1px 0 rgba(255,255,255,1),
    /* Bottom shadow */
    inset 0 -1px 0 rgba(0,0,0,0.1);
  position: relative;
  animation: fadeIn 0.3s ease-in;
}

.create-segment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.create-segment.hidden {
  display: none;
}

.create-segment.active {
  display: flex;
}

.create-segment h2 {
  margin: 0 0 15px 0;
  color: #0b3d66;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 
    0 2px 0 rgba(255,255,255,0.9),
    0 4px 8px rgba(0,0,0,0.1),
    0 -1px 0 rgba(0,0,0,0.1);
  position: relative;
  padding-bottom: 10px;
  border-bottom: 3px solid;
  border-color: #d0d0d0 #f0f0f0 #f0f0f0 #d0d0d0;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Segment Navigation Buttons - Skeuomorphic */
.segment-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 3px solid;
  border-color: #d0d0d0 #f0f0f0 #f0f0f0 #d0d0d0;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.nav-btn-segment {
  flex: 1;
  padding: 16px 28px;
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  font-weight: bold;
  border: 3px solid;
  border-radius: 12px;
  cursor: pointer;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.8),
    0 -1px 0 rgba(0,0,0,0.3);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.nav-btn-segment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.nav-btn-segment:first-child {
  background: 
    linear-gradient(145deg, #a0a0a0 0%, #808080 50%, #606060 100%);
  border-color: #707070 #b0b0b0 #b0b0b0 #707070;
  color: #fff;
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.3),
    0 3px 6px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.nav-btn-segment:last-child:not(.submit-btn) {
  background: 
    linear-gradient(145deg, #4da6ff 0%, #3399ff 50%, #1a8cff 100%);
  border-color: #0066cc #80ccff #80ccff #0066cc;
  color: #fff;
  box-shadow: 
    0 6px 12px rgba(26,140,255,0.4),
    0 3px 6px rgba(26,140,255,0.3),
    inset 0 2px 4px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,102,204,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav-btn-segment.submit-btn {
  background: 
    linear-gradient(145deg, #66cc66 0%, #4db34d 50%, #339933 100%);
  border-color: #267326 #99e699 #99e699 #267326;
  color: #fff;
  box-shadow: 
    0 6px 12px rgba(51,153,51,0.4),
    0 3px 6px rgba(51,153,51,0.3),
    inset 0 2px 4px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(38,115,38,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav-btn-segment:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 16px rgba(0,0,0,0.35),
    0 4px 8px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav-btn-segment:active {
  transform: translateY(1px);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(0,0,0,0.3),
    inset 0 -1px 2px rgba(255,255,255,0.2);
}

.nav-btn-segment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(0,0,0,0.2);
}

.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;
}

.project-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 14px;
  justify-items: center;
}

.project-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, filter 0.2s;
  position: relative;
}

.project-btn:hover {
  transform: translateY(-2px) scale(1.04);
  filter: saturate(1.1) drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

/* Subscription Feature Blur Styles */
.subscription-feature {
  position: relative;
  filter: blur(5px);
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.subscription-feature::after {
    content: attr(data-feature-name) ' - Projectopia ' attr(data-required-tier) '+ Only';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    z-index: 10;
    text-transform: capitalize;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.3);
}

.subscription-feature::after {
    text-transform: none;
}

.subscription-feature[data-required-tier="plus"]::after {
    content: attr(data-feature-name) ' - Projectopia Plus+ Only';
}

.subscription-feature[data-required-tier="pro"]::after {
    content: attr(data-feature-name) ' - Projectopia PRO+ Only';
}

.subscription-feature[data-required-tier="master"]::after {
    content: attr(data-feature-name) ' - Projectopia MASTER+ Only';
}

.subscription-feature[data-required-tier="max"]::after {
    content: attr(data-feature-name) ' - Projectopia MAX+ Only';
}

.subscription-feature.has-access {
  filter: none;
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

.subscription-feature.has-access::after {
  display: none;
}

.project-btn img {
  display: block;
  max-width: 220px;
}

/* Removed text labels under project type images */

#upload-form.hidden {
  display: none;
}

.hidden {
  display: none;
}

#upload-form, #article-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Increased gap for better spacing */
  width: 100%;
  max-width: 700px; /* Increased max-width for a bigger form */
  margin: 40px auto; /* Centered with more vertical margin */
  padding: 30px; /* Added some padding */
  background-color: rgba(255, 255, 255, 0.7); /* Slightly transparent background */
  border-radius: 15px;
  border: 2px solid #ccc;
}

.helper-tip {
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  color: #0b3d66;
  background: linear-gradient(#ffffff, #eef8ff);
  border: 2px solid rgba(0,0,0,0.6);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Scheduler */
.schedule-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.schedule-toggle label {
  font-weight: bold;
  color: #0b3d66;
}

.schedule-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(#ffffff, #eef8ff);
  border: 2px solid rgba(0,0,0,0.6);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
}

.schedule-input-row label.inline {
  margin: 0;
}

.schedule-input-row input[type="datetime-local"] {
  border: 2px solid #999;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: 'Baloo 2', cursive;
}

#upload-form label, #article-form label,
.create-segment label {
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem;
  text-align: left;
  color: #0b3d66;
  font-weight: bold;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.8),
    0 -1px 0 rgba(0,0,0,0.1);
  margin-bottom: 8px;
  display: block;
}

/* Skeuomorphic Input Fields */
#upload-form input[type="text"],
#upload-form textarea,
#upload-form select,
.create-segment input[type="text"],
.create-segment textarea,
.create-segment select {
  width: 100%;
  padding: 14px 16px;
  border: 3px solid;
  border-color: #a0a0a0 #e0e0e0 #e0e0e0 #a0a0a0;
  border-radius: 12px;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  background: 
    linear-gradient(145deg, #ffffff 0%, #f5f5f5 50%, #ebebeb 100%);
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.15),
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
  color: #333;
  transition: all 0.2s ease;
}

#upload-form input[type="text"]:focus,
#upload-form textarea:focus,
#upload-form select:focus,
.create-segment input[type="text"]:focus,
.create-segment textarea:focus,
.create-segment select:focus {
  outline: none;
  border-color: #4aa3ff #a0d4ff #a0d4ff #4aa3ff;
  background: 
    linear-gradient(145deg, #ffffff 0%, #f8fbff 50%, #f0f7ff 100%);
  box-shadow: 
    0 6px 12px rgba(74,163,255,0.25),
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,102,204,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
  transform: translateY(-1px);
}

/* Custom Dropdown Styles - Matching Inventory */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.action-btn {
  width: 100%;
  background: 
    linear-gradient(145deg, #ffffff 0%, #e6e6e6 50%, #d0d0d0 100%);
  color: #333333;
  border: 3px solid;
  border-color: #a0a0a0 #e0e0e0 #e0e0e0 #a0a0a0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  text-align: left;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.action-btn:hover {
  background: 
    linear-gradient(145deg, #f0f0f0 0%, #d9d9d9 50%, #c0c0c0 100%);
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
  transform: translateY(-1px);
}

.action-btn:active,
.action-btn.active {
  background: 
    linear-gradient(145deg, #d0d0d0 0%, #e6e6e6 50%, #f0f0f0 100%);
  box-shadow: 
    inset 0 3px 6px rgba(0,0,0,0.2),
    inset 0 -2px 4px rgba(255,255,255,0.8),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(2px);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background: 
    linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #f0f0f0 100%);
  border: 3px solid;
  border-color: #a0a0a0 #e0e0e0 #e0e0e0 #a0a0a0;
  border-radius: 12px;
  min-width: 100%;
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.25),
    0 5px 10px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu::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;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

.dropdown-item:hover {
  background: 
    linear-gradient(145deg, #f0f0f0 0%, #e6e6e6 50%, #d9d9d9 100%);
  color: #1e293b;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.dropdown-item:active {
  background: 
    linear-gradient(145deg, #e6e6e6 0%, #f0f0f0 50%, #ffffff 100%);
  box-shadow: 
    inset 0 2px 3px rgba(0,0,0,0.2),
    inset 0 -1px 2px rgba(255,255,255,0.6);
}

.dropdown-item:not(:last-child) {
  border-bottom: 2px solid;
  border-color: #d0d0d0 #e8e8e8 #e8e8e8 #d0d0d0;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* Custom file input styling - Skeuomorphic */
.file-drop input[type="file"] {
  position: relative;
  cursor: pointer;
  background: 
    linear-gradient(145deg, #e8e8e8 0%, #d0d0d0 50%, #b8b8b8 100%);
  border: 3px solid;
  border-color: #a0a0a0 #e0e0e0 #e0e0e0 #a0a0a0;
  border-radius: 12px;
  padding: 18px;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: bold;
  color: transparent;
  text-align: center;
  transition: all 0.2s ease;
  overflow: hidden;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.file-drop input[type="file"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.file-drop input[type="file"]:hover {
  transform: translateY(-2px);
  background: 
    linear-gradient(145deg, #f0f0f0 0%, #d8d8d8 50%, #c0c0c0 100%);
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.3),
    0 3px 6px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.7),
    inset 0 -2px 4px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.file-drop input[type="file"]:active {
  transform: translateY(1px);
  background: 
    linear-gradient(145deg, #c0c0c0 0%, #a8a8a8 50%, #909090 100%);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(0,0,0,0.3),
    inset 0 -1px 2px rgba(255,255,255,0.2);
}

/* Hide the default file input text - use ::after instead to avoid conflict */
.file-drop input[type="file"]::after {
  content: attr(data-text, '📁 Choose File');
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  color: #333;
  width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.8),
    0 -1px 0 rgba(0,0,0,0.1);
}

.file-drop input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
  width: 0;
}

.file-drop input[type="file"]::file-selector-button {
  visibility: hidden;
  width: 0;
}

.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 140px;
  border-radius: 18px;
  border: 4px solid;
  border-color: #b0b0b0 #e8e8e8 #e8e8e8 #b0b0b0;
  background: 
    linear-gradient(145deg, #f5f9ff 0%, #e8f3ff 50%, #d4e9ff 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(255,255,255,0.1) 8px,
      rgba(255,255,255,0.1) 16px
    );
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.2),
    0 5px 10px rgba(0,0,0,0.15),
    inset 0 3px 6px rgba(255,255,255,0.8),
    inset 0 -3px 6px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  padding: 20px;
  transition: all 0.2s ease;
}

.file-drop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.file-drop .file-drop-message {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  color: #0b3d66;
  font-weight: bold;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.9),
    0 -1px 0 rgba(0,0,0,0.1);
  pointer-events: none;
  z-index: 1;
}

.thumb-drop { min-height: 120px; }

.file-drop.dragover {
  border-color: #4aa3ff #a0d4ff #a0d4ff #4aa3ff;
  background: 
    linear-gradient(145deg, #d4e9ff 0%, #b8d9ff 50%, #9cc9ff 100%);
  box-shadow: 
    0 12px 24px rgba(74,163,255,0.3),
    0 6px 12px rgba(74,163,255,0.25),
    inset 0 3px 6px rgba(255,255,255,0.7),
    inset 0 -3px 6px rgba(0,102,204,0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transform: scale(1.02);
}

#upload-form button[type="submit"], #article-form button[type="submit"] {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat;
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem; /* Larger font */
  font-weight: bold;
  border: none;
  padding: 15px 0;
  cursor: pointer;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  transition: filter 0.2s, background 0.2s; /* Added background to transition */
  width: 280px; /* Slightly wider button */
  align-self: center;
}

#upload-form button[type="submit"]:hover, #article-form button[type="submit"]:hover {
  filter: brightness(1.1);
}

#upload-form button[type="submit"]:disabled {
  background: url('../GreyButton.png') center center / 100% 100% no-repeat;
  cursor: not-allowed;
  filter: brightness(0.9);
}

#back-btn, .back-link {
  align-self: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

@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;
  }

  .project-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-btn img {
    max-width: 200px;
  }
}

.success-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.success-message h1 {
  font-size: 3rem;
  color: #2e7d32;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.success-message p {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Copyright Agreement Checkbox Styles */
.copyright-agreement {
  margin: 20px 0;
  text-align: left;
  width: 100%;
  max-width: 500px;
}

/* Preview area */
.preview-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.preview {
  border-radius: 14px;
  border: 2px solid rgba(0,0,0,0.6);
  background: linear-gradient(#ffffff, #f3fbff);
  box-shadow: 0 2px 0 rgba(0,0,0,0.25), inset 0 1px rgba(255,255,255,0.9);
  padding: 10px;
}

.preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.preview-label {
  font-size: 0.9rem;
  color: #0b3d66;
  margin-bottom: 6px;
  text-align: left;
}

/* Checkbox Styles - Remade from scratch */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: 'Baloo 2', cursive;
  font-size: 0.6rem;
  line-height: 1.4;
  color: #000;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkmark {
  display: inline-block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  margin-top: 1px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e0e0e0 50%, #d0d0d0 100%);
  border: 3px solid;
  border-color: #b0b0b0 #f8f8f8 #f8f8f8 #b0b0b0;
  border-radius: 6px;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

/* Shine effect on top */
.checkmark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 6px 6px 0 0;
  pointer-events: none;
}

/* Checkmark when checked */
.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(145deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  border-color: #15803d #86efac #86efac #15803d;
  box-shadow: 
    0 4px 8px rgba(34, 197, 94, 0.4),
    0 2px 4px rgba(34, 197, 94, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(21, 128, 61, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 -1px 2px rgba(255, 255, 255, 0.3);
}

/* Hover state */
.checkbox-label:hover .checkmark {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 5px 10px rgba(0, 0, 0, 0.25),
    0 2px 5px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.checkbox-label:hover input[type="checkbox"]:checked + .checkmark {
  box-shadow: 
    0 5px 10px rgba(34, 197, 94, 0.5),
    0 2px 5px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(21, 128, 61, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Active/pressed state */
.checkbox-label:active .checkmark {
  transform: translateY(0px) scale(0.98);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.25),
    inset 0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(255, 255, 255, 0.2);
}

.guidelines-agreement {
  margin: 20px 0;
  text-align: left;
  width: 100%;
  max-width: 500px;
}

.guidelines-agreement a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: bold;
}

.guidelines-agreement a:hover {
  color: #004499;
}

/* Responsive design for checkbox */
@media (max-width: 768px) {
  .guidelines-agreement {
    margin: 15px 0;
  }
  
  .checkbox-label {
    font-size: 0.8rem;
  }
  
  .checkmark {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
  }
  
  .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .checkbox-label {
    font-size: 0.75rem;
  }
  
  .checkmark {
    width: 22px;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
  }
  
  .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    font-size: 14px;
  }
}

/* Tags input styling (tagify removed) */
#tags {
    width: 100%;
    min-height: 40px;
    display: block;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* Zip Instructions Styling */
.zip-instructions {
    margin: 15px 0;
    transition: all 0.3s ease;
}

.zip-instructions.hidden {
    display: none;
}

.instruction-box {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.instruction-box h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.instruction-box p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.file-structure {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.folder {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 5px;
}

.folder-content {
    margin-left: 20px;
    margin-bottom: 10px;
}

.file {
    color: #28a745;
    margin: 2px 0;
}

.file-structure .folder {
    color: #007bff;
    font-weight: 600;
}

.file-structure .file {
    color: #28a745;
}

.note {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 10px 15px;
    margin: 15px 0 0 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    color: #0056b3;
    font-style: italic;
}

/* Article Page Styles */
.article-form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.article-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

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

.publish-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.publish-btn {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    border: 3px solid;
    border-color: #047857 #34d399 #34d399 #047857;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Baloo 2', cursive;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 8px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(5, 150, 105, 0.2),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.publish-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(16, 185, 129, 0.4),
        0 3px 6px rgba(5, 150, 105, 0.3),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.publish-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        inset 0 -2px 4px rgba(255,255,255,0.3);
}

.publish-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.publish-btn.publishing {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    border-color: #b45309 #fbbf24 #fbbf24 #b45309;
    animation: pulse 1.5s ease-in-out infinite;
}

.publish-btn.published {
    background: linear-gradient(145deg, #10b981, #059669);
    border-color: #047857 #34d399 #34d399 #047857;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.publish-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.5);
}

.publish-status.success {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 2px solid #10b981;
}

.publish-status.error {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 2px solid #ef4444;
}

.publish-status.info {
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #0b3d66;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 3px solid;
    border-color: #a0a0a0 #e0e0e0 #e0e0e0 #a0a0a0;
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.8);
    z-index: 1000;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Baloo 2', cursive;
    font-size: 0.95rem;
    color: #0b3d66;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(145deg, #e0e0e0, #d0d0d0);
}

.dropdown-item:first-child {
    border-radius: 5px 5px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 5px 5px;
} 