 body {
     font-family: 'Poppins', sans-serif;
     margin: 0;
     padding: 20px;
     background: linear-gradient(135deg, #0f0f0f, #1a1a2e);
     color: #fff;
 }

 h1 {
     text-align: center;
     color: #FFD700;
     text-transform: uppercase;
     letter-spacing: 2px;
 }

 form {
     max-width: 700px;
     margin: 20px auto;
     display: flex;
     flex-direction: column;
     gap: 20px;
     background: rgba(34, 34, 34, 0.9);
     padding: 30px;
     border-radius: 15px;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
     transition: transform 0.3s;
 }

 form:hover {
     transform: translateY(-5px);
 }

 label {
     font-size: 18px;
     margin-bottom: 5px;
 }

 input,
 select,
 button,
 textarea {
     padding: 12px;
     font-size: 16px;
     border-radius: 8px;
     border: none;
     outline: none;
     transition: box-shadow 0.3s;
 }

 input:focus,
 textarea:focus,
 select:focus {
     box-shadow: 0 0 8px #FFD700;
 }

 input[type="submit"],
 .logout-btn {
     background: #FFD700;
     color: black;
     cursor: pointer;
     font-weight: bold;
     transition: background 0.3s;
 }

 input[type="submit"]:hover,
 .logout-btn:hover {
     background: #ffcc00;
 }

 .logout-btn {
     display: block;
     width: 200px;
     margin: 20px auto;
     text-align: center;
     text-decoration: none;
     padding: 12px 0;
     border-radius: 8px;
 }

 .centered-title {
     text-align: center;
 }

 @media (max-width: 768px) {
     form {
         padding: 20px;
     }

     label {
         width: 100%;
         margin-bottom: 10px;
     }

     input,
     select,
     button,
     textarea {
         width: 100%;
     }
 }

 .toggle-container {
     text-align: center;
     margin: 30px 0;
 }

 .toggle-container select {
     padding: 12px;
     font-size: 16px;
     border-radius: 8px;
     background: #333;
     color: #fff;
     cursor: pointer;
     transition: background 0.3s;
 }

 .toggle-container select:hover {
     background: #444;
 }

 /* Updated Product Gallery Section */
 .product-section {
     width: 100%;
     padding: 20px;
 }

 .product-list {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 10px;
     padding: 20px;
     max-width: 1200px;
     margin: 0 auto;
 }

 .product-card {
     background: rgba(255, 255, 255, 0.98);
     border-radius: 25px;
     overflow: hidden;
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
     transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     display: flex;
     flex-direction: column;
     position: relative;
 }

 .product-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
 }

 .image-container {
     position: relative;
     width: 100%;
     padding-top: 100%;
     /* Square aspect ratio */
     overflow: hidden;
 }

 .product-card img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;

     transition: transform 0.3s ease;
 }

 .product-card:hover img {
     transform: scale(1.05);
 }

 .product-info {
     padding: 20px;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     background: linear-gradient(to bottom, #ffffff, #f8f8f8);
 }

 .product-card h3 {
     margin: 0 0 0 0;
     font-size: 1.2em;
     color: #2c3e50;
     font-weight: 600;
     line-height: 1.4;
     min-height: 3.2em;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .product-price {
     font-size: 1.4em;
     color: #27ae60;
     font-weight: 700;
     margin: 0px 0;
     position: relative;
     display: inline-block;
 }

 .product-price::after {
     content: '';
     position: absolute;
     bottom: -5px;
     left: 0;
     width: 40px;
     height: 2px;
     background: #FFD700;
 }

 .product-actions {
     display: flex;
     gap: 10px;
     margin-top: 20px;
 }

 .category-tag {
     position: absolute;
     top: 15px;
     right: 15px;
     background: rgba(255, 215, 0, 0.95);
     color: #2c3e50;
     padding: 6px 15px;
     border-radius: 20px;
     font-size: 0.9em;
     font-weight: 600;
     z-index: 1;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }

 .edit-btn,
 .delete-btn {
     flex: 1;
     padding: 10px 15px;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     font-weight: 600;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
 }

 .edit-btn {
     background: linear-gradient(to right, #3498db, #2980b9);
     color: white;
 }

 .delete-btn {
     background: linear-gradient(to right, #e74c3c, #c0392b);
     color: white;
 }

 .edit-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
 }

 .delete-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
 }

 @media (max-width: 768px) {
     .product-list {
         gap: 20px;
         padding: 10px;
     }

     .product-card h3 {
         font-size: 1.1em;
     }

     .product-price {
         font-size: 1.3em;
     }
 }

 /* Compact Modal Styles */
 .modal-content.compact {
     max-width: 400px;
     padding: 20px;
 }

 .compact-form {
     display: flex;
     flex-direction: column;
     gap: 12px;
 }

 .form-row {
     display: flex;
     flex-direction: column;
     gap: 5px;
 }

 .form-row label {
     font-size: 14px;
     color: #666;
 }

 .compact-form input,
 .compact-form select {
     padding: 8px 12px;
     font-size: 14px;
     border: 1px solid #ddd;
     border-radius: 6px;
 }

 .image-preview {
     position: relative;
     margin: 10px 0;
 }

 #currentProductImage {
     width: 100%;
     max-height: 150px;
     object-fit: cover;
     border-radius: 8px;
     margin-bottom: 10px;
 }

 .image-upload-btn {
     position: absolute;
     bottom: 20px;
     right: 10px;
     background: rgba(255, 255, 255, 0.9);
     padding: 6px 12px;
     border-radius: 20px;
     font-size: 12px;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 5px;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 }

 .image-upload-btn:hover {
     background: #fff;
 }

 .form-actions {
     display: flex;
     gap: 10px;
     margin-top: 10px;
 }

 .update-btn {
     flex: 1;
     background: #27ae60;
     color: white;
     padding: 8px 16px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-size: 14px;
 }

 .cancel-btn {
     flex: 1;
     background: #e74c3c;
     color: white;
     padding: 8px 16px;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     font-size: 14px;
 }

 .update-btn:hover {
     background: #219a52;
 }

 .cancel-btn:hover {
     background: #c0392b;
 }

 @media (max-width: 480px) {
     .modal-content.compact {
         width: 95%;
         padding: 15px;
     }

     .compact-form input,
     .compact-form select {
         padding: 6px 10px;
         font-size: 13px;
     }

     .form-actions button {
         padding: 6px 12px;
         font-size: 13px;
     }
 }