/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Navbar Style */
nav {
    background-color: #333;
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
}

nav a:hover {
    background-color: #555;
    border-radius: 4px;
}

/* Add media query for smaller screens */
@media (max-width: 768px) {
    nav ul {
        text-align: left;
    }

    nav li {
        display: block;
        margin: 10px 0;
    }
}

/* Left Menu Style */
.left-menu {
    position: fixed;
    top: 60px; /* Adjust depending on navbar height */
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.left-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.left-menu li {
    margin: 10px 0;
}

.left-menu a {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    border-radius: 4px;
}

.left-menu a:hover {
    background-color: #ddd;
}

/* Main Content Layout */
.container {
    display: flex;
    margin-top: 60px; /* Account for navbar height */
}

.left-menu-container {
    width: 200px;
}

.main-content {
    margin-left: 220px; /* Space for left menu */
    flex-grow: 1;
    padding: 20px;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
}

/* Section Styling */
section {
    margin-top: 20px;
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

section p {
    font-size: 1.1em;
    line-height: 1.5;
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-menu-container {
        width: 100%;
    }

    .main-content {
        margin-left: 0;
    }

    nav {
        position: relative;
    }
}

    .form-card {
        width: 100%;
        max-width: 900px;
        margin: 90px auto;
        background: white;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 24px;
        color: #333;
    }

    form {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .form-group {
        width: 48%; /* Each input field will take up about half of the form's width */
    }

    input[type="text"],
    input[type="number"],
    input[type="url"],
    textarea,
    select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        background-color: #fff;
    }

    textarea {
        height: 120px;
        resize: vertical;
    }

    input[type="file"] {
        padding: 10px;
        font-size: 16px;
        background-color: #fff;
        border-radius: 8px;
    }

    button {
        padding: 12px;
        font-size: 16px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
        width: 100%; /* Button takes up full width */
    }

    button:hover {
        background-color: #218838;
    }

    a {
        display: block;
        text-align: center;
        margin-top: 20px;
        text-decoration: none;
        font-size: 16px;
        color: #007bff;
    }

    a:hover {
        color: #0056b3;
    }
    /* add product */
    
    
nav {
    background: #333;
    color: white;
    padding: 10px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.container {
    display: flex;
    width: 100%;
    margin-top: 20px; /* Space for fixed navbar */
}

.sidebar {
    width: 15%;
    background: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    top: 39px; /* Adjust according to navbar */
    left: 0;
    border-right: 2px solid #ddd;
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories ul li {
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.categories ul li:hover {
    background: #ddd;
}

.categories ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
}

.content {
    width: 80%;
    margin-left: 22%;
    padding: 20px;
}

ul.products {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

ul.products li {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(33.33% - 20px); /* Three columns */
    box-sizing: border-box;
    text-align: center;
}

ul.products li img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

form input[type="submit"] {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

form input[type="submit"]:hover {
    background: #218838;
}
  /* index */

    .form-cards {
        width: 100%;
        max-width: 400px;
        margin: 90px auto;
        background: white;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
        color: #333;
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    input[type="text"] {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        background-color: #fff;
    }

    button {
        padding: 12px;
        font-size: 16px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    button:hover {
        background-color: #218838;
    }

    a {
        display: block;
        text-align: center;
        margin-top: 20px;
        text-decoration: none;
        font-size: 16px;
        color: #007bff;
    }

    a:hover {
        color: #0056b3;
    }
       /* add category */
    
    
/* Card Container */
.card-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
    margin: auto;
    text-align: center;
        margin-top: 65px;
}

/* Heading */
h2 {
    color: #333;
    margin-bottom: 15px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

/* Input Fields */
input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

/* Drag Icon */
.drag-icon {
    cursor: grab;
    font-size: 18px;
}

/* Buttons */
button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #218838;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Row Hover Effect */
tbody tr:hover {
    background: #f1f1f1;
    transition: 0.3s;
}

/* Dragged Row Effect */
tbody tr:active {
    background: #d3ffd3;
}

    
    
    