.button-edit {
    background-color: #2f8f46;
    color: #fff;
    padding: 3px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.button-edit:hover {
    background-color: #00796b;
}

.button-delete {
    background-color: #bd1212;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.button-delete:hover {
    background-color: #00796b;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 10px;
    align-items: start;
    justify-content: left;
}

.dashboard-container {
    display: flex;
    max-width: 100%;
    min-width: 60%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.dashboard-nav {
    flex: 0 0 250px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-right: 1.5rem;
    margin-left: -1rem;
}
.dashboard-nav ul {
    list-style: none;
    padding: 0;
}
.dashboard-nav li {
    margin-bottom: 1rem;
}
.dashboard-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}
.dashboard-nav a.active {
    color: rgb(50, 169, 26);
}
.dashboard-content {
    flex: 1;
    min-width: 50%;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-left: -1rem;
}

/* === Form Elements === */
input, textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}
button {
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* === Notices === */
.notice.success {
    background: #e6ffed;
    border: 1px solid #b2f2bb;
    padding: 1rem;
    margin-top: 1rem;
    color: #2f8f46;
    border-radius: 6px;
}
.notice.error {
    background: #ffe6e6;
    border: 1px solid #f5b5b5;
    padding: 1rem;
    margin-top: 1rem;
    color: #c0392b;
    border-radius: 6px;
}

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

/* === File Input === */
form input[type="file"] {
    background-color: #f9f9f9;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
}

/* === Product Form === */
.add-product-form {
    display: column;
    gap: 5%;
    max-width: 100%;
    background: #fff;
    padding: 2%;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.add-product-form > div,
.add-product-form > fieldset {
    display: flex;
    flex-direction: column;
}
.add-product-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
    color: #333;
}
.add-product-form input[type="text"],
.add-product-form input[type="number"],
.add-product-form textarea,
.add-product-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
}
.add-product-form textarea {
    resize: vertical;
}
.add-product-form small {
    color: #666;
    font-size: 0.85rem;
}
.add-product-form button[type="submit"] {
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.add-product-form button[type="submit"]:hover {
    background-color: rgb(25, 121, 36);
}

/* === Select === */
.select-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2%;
    width: 100%;
}
.select-wrapper select {
    padding-right: 2.5rem;
}
.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    pointer-events: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #e0e0ff;
    transform: translateY(-50%);
}
.add-product-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.add-product-form select:hover,
.add-product-form select:focus {
    border: solid;
    border-color: rgb(29, 159, 81);
    color: #fff;
    outline: none;
    box-shadow: 0 0 10px rgb(26, 135, 57);
}

/* === Upload UI === */
.upload-container {
    font-family: 'Segoe UI', sans-serif;
    margin: 20px;
    color: #fff;
}
.upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: border 0.3s, background 0.3s;
}
.upload-box:hover {
    border-color: rgb(152, 152, 152);
    background: rgba(255, 255, 255, 0.1);
}
.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.upload-icon {
    width: 40px;
    height: 40px;
    color: rgb(152, 152, 152);
}
.upload-action {
    color: rgb(152, 152, 152);
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}
.upload-action.file-selected {
    color: rgb(0, 150, 40);
    font-weight: 600;
}

/* === Banner === */
.dashboard-banner {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}
.dashboard-banner.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.dashboard-banner.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Filter Forms === */
.dashboard-filter-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    border: 1px solid #eee;
}
.dashboard-filter-form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}
.dashboard-filter-form .filter-group {
    flex: 1 1;
    display: flex;
    flex-direction: column;
}
.dashboard-filter-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}
.filter-toolbar {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    max-width: 45%;
}
.filter-toolbar-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 80%;
}
.filter-input {
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid rgb(0, 150, 40);
    border-radius: 6px;
    background-color: #fff;
    min-width: 200px;
}
.filter-button {
    padding: 0.45rem 1rem;
    background-color: rgb(0, 150, 40);
    color: #fff;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.filter-button:hover {
    background-color: #00796b;
}
.btn-download-template {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgb(0, 150, 40);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}
.btn-download-template:hover {
    background-color: rgb(0, 120, 30);
}

/* === Mobile Responsiveness === */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        padding: 1rem;
    }

    .dashboard-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        border-radius: 8px;
        padding: 1rem;
    }

    .dashboard-content {
        width: 100%;
        padding: 1rem;
        border-radius: 8px;
    }

    .filter-toolbar {
        max-width: 100%;
    }

    .filter-toolbar-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-input {
        width: 100%;
        min-width: unset;
    }

    .dashboard-filter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-filter-form .filter-group {
        width: 100%;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #ddd;
        padding-bottom: 1rem;
    }

    td {
        padding: 0.5rem;
        text-align: right;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
        color: #333;
    }

    .upload-box {
        padding: 1.5rem;
    }

    @media (max-width: 768px) {
        table,
        thead,
        tbody,
        th,
        td,
        tr {
            display: block;
            width: 100%;
        }
    
        thead {
            display: none;
        }
    
        tr {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 1rem;
            margin-bottom: 1rem;
        }
    
        td {
            position: relative;
            text-align: left;
            border: none;
            border-bottom: 1px solid #eee;
            font-size: 0.95rem;
            color: #333;
        }
    
        td::before {
            content: attr(data-label);
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-weight: 600;
            white-space: nowrap;
            color: #555;
        }
    
        td:last-child {
            border-bottom: none;
        }
    }


    
}
