/* General Styles */
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background: #edffec;
}

/* Login Page */
.login-container {
    width: 100%;
    max-width: 350px;
    margin: 100px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 8px;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background: #18650f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.login-container button:hover {
    background: #3baf2d;
    transform: scale(1.05);
}

.error {
    color: red;
    margin-bottom: 10px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #c10707;
    padding: 15px 20px;
    color: white;
    border-bottom: 3px solid green;
    border-top: 3px solid green;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 25px;
    cursor: pointer;
}

/* ✅ Product Cards */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

/*
.product-card {
    position: relative;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}
    */


.product-card {
    margin-bottom:20px;
}

.product-card .icon-button.delete:hover {
    transform: scale(1.2);
    color: darkred;
}

.product-card .icon-button.edit:hover {
    transform: scale(1.2);
    color: #0056b3;
}

/* ✅ Center Edit & Delete Buttons at the Top */
.action-icons {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding-bottom: 50px; /* ✅ Adds Space Below Icons */
}

/* ✅ Edit Button */
.icon-button.edit {
    color: #007bff;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ✅ Delete Button */
.icon-button.delete {
    color: red;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.product-card h3 {
    margin-top: 35px; /* ✅ Pushes product name down to avoid overlap */
}

/* ✅ Stock In & Stock Out Buttons Inline */
.stock-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

/* ✅ Buttons */
button {
    display: inline-block;
    padding: 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

/* ✅ Primary Button */
button.primary {
    background-color: #0f4711;
    color: white;
}

button.primary:hover {
    background-color: #09600f;
    transform: scale(1.05);
}

/* ✅ Danger Button */
button.danger {
    background-color: #d9534f;
    color: white;
}

button.danger:hover {
    background-color: #c9302c;
    transform: scale(1.05);
}

/* ✅ Stock Button */
button.stock {
    background-color: #f39c12;
    color: white;
}

button.stock:hover {
    background-color: #e67e22;
    transform: scale(1.05);
}

button.retail {
    background-color: #048704;
    color: white;
}

button.retail:hover {
    background-color: #8ab817;
    transform: scale(1.05);
}

/* ✅ Add Product Button */
.add-product-btn {
    background-color: #0f4711;
    color: white;
    padding: 12px 20px;
    margin-bottom: 15px;
    font-size: 18px;
    border-radius: 8px;
}

.add-product-btn:hover {
    background-color: #09600f;
    transform: scale(1.05);
}

/* ✅ Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 12px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.table-container {
    overflow-x: scroll;

}


input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}
    
    
input:focus, select:focus {
    border: 2px solid #0f4711;
    outline: none;
}

/* ✅ Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    margin: 10% auto;
    width: 300px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-item {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #25a65f;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* ✅ Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 45px;
        left: 0;
        width: 100%;
        background: #c10707;
        text-align: center;
    }

    nav ul.active {
        display: flex;
        z-index:9999;
    }

    nav ul li {
        margin: 0;
        padding: 10px;
    }

    .product-container {
        justify-content: center;
    }

    .actions button {
        width: 100%;
        margin-bottom: 10px;
    }

    .button-container {
        flex-direction: column;
    }

    .button-container button {
        margin-bottom: 5px;
    }
}
