body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  gap: 20px;

  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  background-attachment: fixed;
}

.login-wrapper {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  padding: 50px 0px;
  background: white;
  border: 1px solid rgb(177, 175, 175);
  width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.007),
    0 30px 60px rgba(0, 0, 0, 0.158);
  position: relative;
  margin-left: 20px;
  margin-right: 20px;
}

.login-description {
  font-family: "googlesans";
  position: absolute;
  top: 10px;
  color: rgba(0, 0, 0, 0.425);
}

.login-headline {
  font-family: "googlesans";
  color: black;
  font-size: 50px;
  font-weight: 900;
}

.login-btn {
  background-color: black;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid black;
}

.login-btn:hover {
  cursor: pointer;
}

input {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgb(177, 175, 175);
  font-family: "googlesans";
  font-size: 15px;
}

/*Dashboard*/
.dashboard-header {
  height: 85px;
  width: 100%;
  background-color: white;
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 20px;
}

.dashboard-logo-img {
  height: 70%;
}

.dashboard-menu-headline {
  font-family: "googlesans";
  font-weight: 900;
  font-size: 30px;
}

.logout-btn {
  position: absolute;
  right: 30px;
  background-color: black;
  color: white;
  padding: 10px 20px;
  font-family: "googlesans";
  border: none;
  border-radius: 10px;
  font-size: 15px;
}

.logout-btn:hover {
  cursor: pointer;
}

.main-wrapper {
  margin-top: 85px;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.dashboard-headline {
  font-family: "googlesans";
  font-weight: 900;
  font-size: 50px;
}

/*Upload-Box*/
.upload-box {
  background: white;
  border: 2px dashed #979899;
  border-radius: 20px;
  padding: 60px 30px;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
  font-family: "googlesans";
  width: 90%;
}

.upload-box:hover {
  background: #f7faff;
  border-color: #2563eb;
}

.upload-box.dragover {
  background: #eef5ff;
  border-color: #2563eb;
  transform: scale(1.02);
}

.upload-box h2 {
  color: #333;
  margin-bottom: 10px;
}

.upload-box p {
  color: #777;
  font-size: 15px;
}

.upload-box span {
  color: #2563eb;
  font-weight: bold;
  text-decoration: underline;
}

#fileInput {
  display: none;
}

#previewWrapper {
  display: none;
  width: 90%;
  margin: 40px auto;
}

#previewWrapper.show {
  display: block;
}

#previewContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.preview-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  box-sizing: border-box;
  background-color: lightgray;
}

.preview-image {
  width: 250px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.image-data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.image-data input {
  padding: 10px;
}

.upload-actions {
  display: none;
  width: 90%;
  margin: 20px auto 50px;
  justify-content: flex-end;
}

.upload-actions.show {
  display: flex;
}

.upload-btn {
  background: black;
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 12px;
  font-family: "googlesans";
  font-size: 16px;
  transition: 0.2s;
}

.upload-btn:hover {
  cursor: pointer;
  transform: translateY(-2px);
}

#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

#loadingOverlay.show {
  display: flex;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-family: "googlesans";
}

.spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #d9d9d9;
  border-top: 6px solid black;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-box h2 {
  margin: 0;
}

.loading-box p {
  margin: 0;
  color: #666;
}

.database-section{
    width:90%;
    margin:80px auto;
}

.database-section h1{
    font-family:"googlesans";
    font-size:42px;
    margin-bottom:40px;
}

#databaseContainer{

    display:flex;
    flex-direction:column;
    gap:30px;

}

.database-card{

    display:flex;
    align-items:flex-start;
    gap:25px;

    width:100%;
    box-sizing:border-box;

    background:white;
    border-radius:20px;
    border:1px solid #ddd;
    box-shadow:0 8px 25px rgba(0,0,0,.08);

    padding:20px;

}

.database-image{

    width:300px;

    height:220px;

    object-fit:cover;

    border-radius:15px;

    flex-shrink:0;

}

.database-content{

    flex:1;

    display:flex;
    flex-direction:column;

    gap:12px;

    padding:0;

}

.database-content h3{

    margin:0;

    font-family:"googlesans";

    font-size:18px;

    word-break:break-word;

}

.database-content{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:20px;
}

.database-content input{
    width:100%;
    box-sizing:border-box;
}

.save-btn{

    margin-top:10px;

    background:black;
    color:white;

    border:none;

    border-radius:10px;

    padding:12px;

    font-family:"googlesans";

    cursor:pointer;

}

.delete-btn{

    margin-top:10px;

    background:#d32f2f;
    color:white;

    border:none;

    border-radius:10px;

    padding:12px;

    font-family:"googlesans";

    cursor:pointer;

}

.delete-btn:hover{

    background:#b71c1c;

}