:root{
  --vsu-orange: #cd4f15;
  --vsu-gold:   #FFC83D;
  --vsu-dark:   #1f1f1f;
  --bg:         #f9f7f6;
  --muted:      #6b6b6b;
  --surface:    #ffffff;
  --glass:      rgba(255,255,255,0.76);
  --radius: 14px;
  --container-max: 980px;
  --gap: 18px;
  --shadow-sm: 0 6px 18px rgba(31,31,31,0.06);
  --shadow-md: 0 14px 40px rgba(31,31,31,0.08);
  --shadow-lg: 0 30px 70px rgba(31,31,31,0.10);
  --glass-border: rgba(31,31,31,0.04);
  --focus: 0 0 0 4px rgba(205,79,21,0.12);
}

body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 55px;
}

.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-left: 12px;
  vertical-align: middle;
}

.vsu{
position:fixed;
top:5px;
left:5px;
width:60px;}

header {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: min(95%, var(--container-max));
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--vsu-orange), #b43f12);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  transform: translateX(-50%) translateY(0);
  transition: transform 0.35s ease, opacity 0.25s ease;
  will-change: transform;
}

header.header--hidden {
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
}

.submenu{
position:fixed;
right:5px;}

.subitem{
font-size:12px;
border-bottom:1px solid white;
cursor:pointer;
padding:5px;
text-align:center;
display:inline-block;
margin:5px;
color:white;}
.subitem:hover{
border-bottom:1px solid lime;}

h1 {
  color: rgb(255, 255, 255);
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.add-item-form {
    background-color: #f9f9f9;
    padding: 25px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 500px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: center;
}

.btn-submit, .btn-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background-color: #45a049;
}

.btn-cancel {
    background-color: #f44336;
    color: white;
}

.btn-cancel:hover {
    background-color: #da190b;
}

.add-item-btn {
    display: block;
    margin-top:50px;
    padding: 12px 24px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.add-item-btn:hover {
    background-color: #45a049;
}

.items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.item-card {
    width: calc(33.333% - 14px);
    min-width: 250px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.item-card h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.item-card p {
    margin: 8px 0;
    font-size: 13px;
}

.item-image-container {
    width: 100%;
    height: 200px;
    margin-top: 12px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Admin Controls Styling */
.admin-controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.admin-controls .edit-form {
    background-color: #fff8f0;
    padding: 15px;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    margin-bottom: 10px;
}

.admin-controls .edit-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

.admin-controls .edit-form input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
}

.admin-controls .edit-form button {
    background-color: #ff9800;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    width: 100%;
}

.admin-controls .edit-form button:hover {
    background-color: #e68900;
}

.admin-controls form {
    margin-bottom: 8px;
}

.admin-controls button.danger {
    background-color: #f44336;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    width: 100%;
}

.admin-controls button.danger:hover {
    background-color: #da190b;
}