body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
background: linear-gradient(135deg, #667eea, #764ba2);
color: #fff;
min-height: 100vh;
}

/* --- NAVBAR --- */
.navbar {
width: 100%;
background: linear-gradient(90deg, #764ba2 60%, #667eea 100%);
color: #fff;
padding: 0;
box-shadow: 0 2px 16px rgba(96,80,220,0.13);
position: sticky;
top: 0;
z-index: 999;
display: flex;
align-items: center;
min-height: 56px;
}
.navbar-brand {
font-size: 1.35rem;
font-weight: 700;
margin-left: 18px;
flex: 1;
letter-spacing: 1.2px;
}
.navbar-links {
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: 22px;
align-items: center;
}
.navbar-links li {}
.navbar-links a {
color: #fff;
text-decoration: none;
font-weight: 500;
font-size: 1.02rem;
padding: 9px 15px;
border-radius: 7px;
transition: background 0.18s, color 0.21s;
display: block;
}
.navbar-links a:hover {
background: rgba(255,255,255,0.12);
color: #ffe;
}
.navbar-toggle {
font-size: 2.1rem;
cursor: pointer;
padding: 0 18px;
display: none;
user-select: none;
}

.search-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 20px 0;
}
.search-bar-premium {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(90deg, #764ba2 60%, #667eea 100%);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(96,80,220,0.13);
  display: flex;
  padding: 3px;
  align-items: center;
  position: relative;
}

.search-bar-premium input[type="text"] {
  flex: 1;
  width: 100%;
  font-size: 1.18rem;
  background: #232344;
  color: #f8f8ff;
  border: none;
  outline: none;
  border-radius: 13px;
  padding: 13px 42px 13px 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 8px rgba(118,75,162,0.08);
  transition: box-shadow 0.18s, background 0.20s;
}

.search-bar-premium input[type="text"]:focus {
  background: #343656;
  box-shadow: 0 6px 18px rgba(102,126,234,0.17);
}

/* Mobile optimization */
@media (max-width: 650px) {
  .search-bar-premium input[type="text"] {
    font-size: 1.05rem;
    padding: 10px 30px 10px 11px;
  }
  .search-bar-premium {
    max-width: 97vw;
  }
}

/* --- MOBILE NAVBAR --- */
@media (max-width: 768px) {
.navbar-links {
position: absolute;
top:56px;
left:0;
width: 100%;
flex-direction: column;
background: linear-gradient(90deg, #764ba2 60%, #667eea 100%);
box-shadow: 0 8px 24px rgba(118,75,162,0.11);
gap: 0;
display: none;
animation: navbarFade 0.22s;
}
.navbar-links.active {
display: flex !important;
}
.navbar-links li {
border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-links a {
font-size: 1rem;
padding: 12px 17px;
}
.navbar-toggle {
display: block;
}
.navbar-brand {
font-size: 1.09rem;
margin-left: 9px;
}
}
@keyframes navbarFade { from { opacity: 0; } to { opacity: 1; } }

/* --- PAGE DESIGN --- */
.page-container, .form-container {
max-width: 800px;
margin: 32px auto 0 auto;
background: rgba(30,30,47,0.95);
padding: 33px 14px 24px 14px;
border-radius: 20px;
box-shadow:0 7px 22px rgba(102,126,234,0.15);
}

/* --- ADMIN PANEL FORM --- */
.form-container h1 {
font-size: 2rem;
color: #ffe;
margin-bottom: 27px;
font-weight: bold;
text-align: center;
}
#add-card-form {
display: flex;
flex-direction: column;
gap: 16px;
margin-bottom: 30px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 4px;
}
#add-card-form label {
font-weight: 600;
color: #fff;
font-size: 1rem;
margin-bottom: 2px;
}
#add-card-form input[type="text"],
#add-card-form input[type="url"],
#add-card-form input[type="file"] {
padding: 12px 13px;
border-radius: 12px;
border: none;
font-size: 1.08rem;
background: #373862;
color: #ebecfa;
}
#add-card-form input:focus {
background: #4e5082;
outline: none;
}
#add-card-form button {
padding: 15px 0;
font-size: 1.15rem;
border-radius: 13px;
background: linear-gradient(90deg,#764ba2,#667eea);
color: #fff;
font-weight: bold;
border: none;
margin-top: 7px;
cursor: pointer;
box-shadow: 0 2px 8px rgba(102,126,234,0.12);
transition: background 0.18s;
}

/* --- CARDS GRID --- */
.cards-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
gap: 24px;
margin-top: 18px;
justify-content: center;
}
.card {
background: linear-gradient(135deg, #232344, #494971 100%);
border-radius: 16px;
box-shadow: 0 5px 25px rgba(96,80,220,0.16);
padding: 20px 12px 21px;
text-align: center;
transition: box-shadow 0.18s, transform 0.13s;
position: relative;
}
.card:hover {
box-shadow: 0 13px 35px rgba(114,98,212,0.18);
transform: scale(1.03);
}
.card button.try-btn {
width: 97%;
margin-bottom: 9px;
padding: 10px 0;
font-size: 1.14rem;
font-weight: 600;
border: none;
background: linear-gradient(90deg, #667eea, #764ba2);
color: #fff;
border-radius: 9px 9px 0px 0px;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.09);
cursor: pointer;
transition: background 0.22s;
}
.card img {
width: 98%;
aspect-ratio: 16 / 9;
object-fit: cover;
border-radius: 8px;
margin-bottom: 10px;
background: #18192d;
box-shadow: 0 2px 7px rgba(102,126,234,0.07);
display: block;
max-height: 180px;
}
.card p {
color: #bcbcdf;
margin: 8px 0 0 0;
font-size: 1.03rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
display: block;
}
.card .delete-btn {
position: absolute;
top: 15px;
right: 13px;
background: #ff4d4d;
color: #fff;
font-size: 1rem;
border: none;
border-radius: 50%;
width: 32px;
height: 32px;
cursor: pointer;
box-shadow:0 2px 6px rgba(220,60,90,0.16);
display: flex;
align-items: center;
justify-content: center;
transition: background 0.19s, transform 0.19s;
}
.card .delete-btn:hover {
background: #e02424;
transform: scale(1.13);
}

/* --- MOBILE --- */
@media (max-width: 650px) {
.page-container, .form-container { max-width: 98vw; padding: 10px 3px 10px 3px; margin-top:10px; }
#add-card-form { gap: 10px; }
.cards-list { grid-template-columns: 1fr; gap:13px; margin-top:7px; }
.card img { max-height: 200px; }

  .cards-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 8px;
}

.card {
  background: #19194d;
  border-radius: 18px;
  box-shadow: 0 4px 18px #00000030;
  padding: 14px 10px;
  margin: 0 auto;
  max-width: 390px;
  text-align: center;
}

.card img {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  height: 700px;
  object-fit: cover;
  background: #fff;
  margin: 10px auto 12px;
  border-radius: 15px;
  box-shadow: 0 2px 12px #00000015;
}

.card-title {
  font-size: 1.16rem;
  color: #ecece1;
  font-weight: 700;
  margin-bottom: 3px;
}

.card-desc {
  font-size: 1.02rem;
  color: #d8d8e7;
  margin-bottom: 10px;
}

.copy-btn {
  background: #41cf60;
  color: #fff;
  font-weight: bold;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  margin: 0 auto 2px;
  display: block;
  cursor: pointer;
  font-size: 1rem;
}



}




