/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background: #f3f4f6;
    margin: 0;
    padding: 0;
}

/* Sidebar Enhancements */
.sidebar {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    transition: width 0.3s ease;
}

.sidebar a {
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}
a:hover {
    color: #006332 !important;
    text-decoration: none !important;
    background: #fff !important;
}

/* Main Content */
main {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Form Elements */
input, textarea, select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Buttons */
button {
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    transform: translateY(-1px);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

tr:hover {
    background: #f9fafb;
}

/* WYSIWYG Editor */
.wysiwyg {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

/* Custom Card Styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #f4ece2;
    color: #fff;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

footer p {
    color: #000;
}

/* Menu Page Styles */
#menu-left-sidebar {
    width: 320px;
    padding: 20px 30px;
    background: #f6f7f7;
    border-right: 1px solid #ccd0d4;
}

#menu-left-sidebar h3,
#existingMenus h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccd0d4;
}

#menu-left-sidebar .mb-4 {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 2px;
}

#menu-left-sidebar h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 10px;
}

#menu-left-sidebar label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #3c434a;
}

#menu-left-sidebar input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

#menu-left-sidebar input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 2px;
    font-size: 13px;
    margin-bottom: 8px;
    box-shadow: none;
}

#menu-left-sidebar input[type="text"]:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

#menu-left-sidebar button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 7px 14px;
    font-size: 13px;
    line-height: 1;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

#menu-left-sidebar button:hover {
    background: #135e96;
}

/* Main Content */
.w-2/3 {
    flex: 1;
    padding: 20px 30px;
    min-width: 0;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccd0d4;
}

#menuForm {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    display: grid;
}

#menuForm .flex {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#menuForm .w-1/2 {
    flex: 1;
}

#menuForm label {
    display: block;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

#menuForm input[type="text"],
#menuForm select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 2px;
    font-size: 13px;
}

#menuForm select {
    height: 30px;
}

#menuForm input[type="text"]:focus,
#menuForm select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

#menuForm .flex:last-child {
    margin-top: 20px;
}

#menuForm button[type="submit"] {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

#menuForm button[type="submit"]:hover {
    background: #135e96;
}

#deleteMenu {
    background: #d63638;
}

#deleteMenu:hover {
    background: #b32d2e;
}

/* Menu Items */
#menuItems h3,
#Menu-Items h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 10px;
}

.menu-item {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 10px;
    margin-bottom: 5px;
    position: relative;
    cursor: move;
}

.menu-item .flex {
    gap: 10px;
}

.menu-item input[type="text"],
.menu-item select {
    width: 33.33%;
    margin: 0;
}

.menu-item .remove-item {
    background: #d63638;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item .remove-item:hover {
    background: #b32d2e;
}

.sortable-ghost {
    opacity: 0.8;
    background: #f0f6fc;
    border: 1px dashed #2271b1;
}

/* Menu-Items Section */
#Menu-Items {
    display: block;
    float: left;
    width: 100%;
    text-align: left;
}

#Menu-Items label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 8px;
    color: #3c434a;
}

#Menu-Items {
    display: inline-block;
    margin-top: 0px;
    font-size: 12px;
}

#Menu-Items input[type="radio"] {
    width: 20px;
    margin-right: 5px;
    float: left;
    display: inline-block;
}

/* Existing Menus */
#menuList .mt-4 {
    margin-bottom: 15px;
}

#menuList h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
}

#menuList ul {
    list-style: none;
    margin-left: 15px;
    padding-left: 0;
}

#menuList li {
    position: relative;
    padding-left: 15px;
    color: #3c434a;
    margin-bottom: 5px;
}

#menuList li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: #646970;
}

#menuList a {
    color: #2271b1;
    text-decoration: none;
    margin-left: 5px;
}

#menuList a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
    }

    .flex {
        flex-direction: column;
    }
}
