
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: #f5f5f5;
  color: #222;
}

body.landing-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.landing-container {
  text-align: center;
  max-width: 420px;
}

.logo {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.5;
}


.primary-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: #6a5acd;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.primary-btn:hover {
  background: #5a4ac0;
}

.switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.switch a {
  color: #6a5acd;
  text-decoration: underline;
}


body.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.auth-card {
  background: white;
  width: 100%;
  max-width: 400px;
  padding: 1.8rem;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  position: relative;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.4rem;
  text-decoration: none;
  color: #666;
}

.auth-box label {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: left;
}

.auth-box input {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.password-hint {
  font-size: 0.75rem;
  color: #777;
  margin-top: -0.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  text-align: left;
}

.forgot {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #6a5acd;
  text-decoration: underline;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.4rem;
    border-radius: 12px;
  }
  .logo {
    font-size: 1.6rem;
  }
}

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 70px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  z-index: 1000;
}

.nav-icon {
  width: 40px;
  height: 40px;
  margin: 0.6rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-icon img {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transition: 0.2s ease;
}

.nav-icon:hover img {
  opacity: 1;
  transform: scale(1.15);
}

.nav-icon.active img {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 4px #6a5acd);
}

.nav-spacer {
  flex-grow: 1;
}


.top-bar {
  position: fixed;
  top: 0;
  left: 70px;
  right: 0;
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  z-index: 900;
}

.search-bar {
  width: 50%;
  max-width: 500px;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background: #fafafa;
}

.top-logo {
  position: absolute;
  right: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #6a5acd;
}


.page-content {
  margin-left: 70px;
  padding-top: 90px;
  padding: 1.5rem;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 120px; 
    z-index: 2000;
}

.popup-card {
    background: #ffffff;
    width: 750px;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.popup-card h2 {
    margin-top: 0;
    text-align: center;
    color: #7bbfa5;
    font-weight: 600;
}


.popup-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.drag-area {
    flex: 1;
    border: 2px dashed #bfbfbf;
    border-radius: 12px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 16px;
    cursor: pointer;
    background: #fafafa;
}

#file-upload {
    display: none;
}

.form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}

.input-field {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.textarea {
    height: 80px;
    resize: none;
}

.upload-btn {
    margin-top: 20px;
    padding: 12px;
    background: #7bbfa5;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}



@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}
