/* YeeMenu Admin Settings Styles */
.yeemenu-settings-wrap {
    display: flex;
    gap: 0;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    min-height: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.yeemenu-settings-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.yeemenu-settings-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yeemenu-settings-sidebar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.yeemenu-settings-sidebar li a:hover {
    background: #fff;
    color: #2271b1;
}

.yeemenu-settings-sidebar li a.active {
    background: #fff;
    color: #2271b1;
    border-left-color: #2271b1;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.yeemenu-settings-sidebar li a .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    opacity: 0.8;
}

.yeemenu-settings-sidebar li a.active .dashicons {
    opacity: 1;
}

.yeemenu-settings-content {
    flex: 1;
    padding: 32px 40px;
    background: #ffffff;
}

.yeemenu-settings-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.yeemenu-settings-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.yeemenu-settings-content .form-table {
    margin-top: 24px;
}

.yeemenu-settings-content .form-table th {
    width: 240px;
    font-weight: 600;
    color: #334155;
    padding: 20px 0;
    vertical-align: top;
}

.yeemenu-settings-content .form-table td {
    padding: 20px 0;
    vertical-align: top;
}

/* Modern Inputs */
.yeemenu-settings-content input[type="text"],
.yeemenu-settings-content input[type="email"],
.yeemenu-settings-content input[type="number"],
.yeemenu-settings-content input[type="time"],
.yeemenu-settings-content textarea,
.yeemenu-settings-content select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: none;
}

.yeemenu-settings-content input[type="text"]:focus,
.yeemenu-settings-content input[type="email"]:focus,
.yeemenu-settings-content input[type="number"]:focus,
.yeemenu-settings-content input[type="time"]:focus,
.yeemenu-settings-content textarea:focus,
.yeemenu-settings-content select:focus {
    border-color: #2271b1;
    background: #ffffff;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Checkboxes and descriptions */
.yeemenu-settings-content label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.yeemenu-settings-content p.description {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    display: block;
}

/* Store Branch Cards */
.yeemenu-branches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
}

.yeemenu-branch-card {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    align-items: flex-start;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.yeemenu-branch-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.yeemenu-branch-drag {
    padding-top: 8px;
    color: #94a3b8;
    cursor: move;
}

.yeemenu-branch-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yeemenu-branch-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.yeemenu-branch-field label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.yeemenu-branch-field input {
    width: 100% !important;
}

.yeemenu-branch-field-row {
    display: flex;
    gap: 16px;
}

.yeemenu-branch-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 100px;
    padding-top: 8px;
}

.yeemenu-branch-status {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.yeemenu-add-btn {
    margin-top: 16px !important;
}

/* Timings Button Ext */
.yeemenu-add-slot {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.yeemenu-add-slot:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Timings Blocks */
.yeemenu-day-block {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: background-color 0.2s, border-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.yeemenu-day-block:hover {
    border-color: #cbd5e1;
}

.yeemenu-day-block strong {
    font-size: 15px;
    color: #334155;
}

.yeemenu-slots-container {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.yeemenu-slot-row {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    margin-right: 8px;
}

/* Buttons */
.yeemenu-settings-content .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: 500;
    height: 36px;
    line-height: normal;
}

.yeemenu-settings-content .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.yeemenu-settings-content .button-secondary {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: 500;
    height: 36px;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.yeemenu-settings-content .button-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #334155;
}

/* Remove button icons */
.yeemenu-remove-slot,
.yeemenu-remove-branch {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ef4444 !important;
    padding: 4px !important;
    margin: 0 !important;
    transition: transform 0.2s, color 0.2s !important;
}

.yeemenu-remove-slot:hover,
.yeemenu-remove-branch:hover {
    color: #dc2626 !important;
    transform: scale(1.1);
}

/* Action button icons */
.yeemenu-settings-content .button .dashicons {
    margin-top: 4px;
    height: 18px;
    width: 18px;
    font-size: 18px;
}

/* Auto-Extracted Admin Styles */
.yeemenu-col-icon {
    width: 30px;
}

.yeemenu-col-enabled {
    width: 60px;
    text-align: center;
}

.yeemenu-col-action {
    width: 50px;
}

.yeemenu-drag-icon {
    cursor: move;
    color: #94a3b8;
    margin-top: 4px;
}

.yeemenu-phone-input {
    width: 140px !important;
}

.yeemenu-text-center {
    text-align: center;
}

.yeemenu-day-block.is-closed {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.yeemenu-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.yeemenu-day-title {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.yeemenu-day-toggle {
    font-size: 14px;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
}

.yeemenu-day-toggle input {
    margin-right: 6px !important;
}

/* Admin Order Details View */
.yeemenu-admin-order-details-container {
    position: relative;
    margin-top: 10px;
}

#yeemenu-admin-display-box {
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #ccd0d4;
    border-top: 4px solid #E4002B;
    /* Default color, overridden inline */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.yeemenu-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.yeemenu-edit-btn .dashicons {
    margin-top: 4px;
    margin-right: 4px;
}

.yeemenu-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.yeemenu-info-item label {
    color: #646970;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.yeemenu-info-item span {
    font-weight: 500;
    font-size: 14px;
    color: #1d2327;
}

.yeemenu-info-item:first-child span {
    font-weight: 600;
}

#yeemenu-admin-edit-box {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-top: 4px solid #d63638;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.yeemenu-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 10px;
}

.yeemenu-edit-header strong {
    font-size: 14px;
    color: #1d2327;
}

.yeemenu-cancel-btn {
    color: #d63638;
    text-decoration: none;
}

.yeemenu-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.yeemenu-edit-grid .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.yeemenu-edit-grid .form-field select,
.yeemenu-edit-grid .form-field input[type="text"],
.yeemenu-edit-grid .form-field input[type="number"] {
    width: 100%;
}

/* Order List - Custom Column Badges */
.yeemenu-col-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.yeemenu-col-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.yeemenu-col-badge--empty {
    color: #94a3b8;
}

.yeemenu-col-badge--delivery {
    background: #dbeafe;
    color: #1e40af;
}

.yeemenu-col-badge--takeaway {
    background: #fef3c7;
    color: #92400e;
}

.yeemenu-col-badge--dine_in {
    background: #dcfce7;
    color: #166534;
}

/* Order List - Time Slot Column */
.yeemenu-timeslot-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yeemenu-timeslot-time {
    font-weight: 500;
    font-size: 13px;
    color: #1d2327;
}

.yeemenu-timeslot-countdown {
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    padding: 1px 8px;
    display: inline-block;
    width: fit-content;
}

.yeemenu-timeslot--upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.yeemenu-timeslot--active {
    background: #dcfce7;
    color: #166534;
    animation: yeemenu-pulse 2s ease-in-out infinite;
}

.yeemenu-timeslot--overdue {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes yeemenu-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Adjust column widths */
.widefat .column-yeemenu_service_type {
    width: 100px;
}

.widefat .column-yeemenu_time_slot {
    width: 130px;
}

.yeemenu-cpt-settings .form-table th {
    width: 25%;
}

/* Product Add-ons Panel */
.yeemenu-addons-container {
    max-width: 900px;
}

.yeemenu-addon-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.yeemenu-addon-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.yeemenu-addon-group-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.yeemenu-addon-group-header input[type="text"] {
    flex-grow: 1;
    font-weight: 600;
    font-size: 15px !important;
    background: #f8fafc !important;
}

.yeemenu-addon-options {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
}

.yeemenu-addon-options strong {
    display: block;
    margin-bottom: 12px;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.yeemenu-addon-option {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.yeemenu-addon-option:last-child {
    margin-bottom: 0;
}

.yeemenu-addon-option input[type="text"] {
    flex: 2;
    background: #fff !important;
}

.yeemenu-addon-option input[type="number"] {
    flex: 1;
    background: #fff !important;
}

.yeemenu-remove-group {
    color: #ef4444 !important;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    font-weight: 500;
    font-size: 13px;
    box-shadow: none !important;
}

.yeemenu-remove-group:hover {
    color: #dc2626 !important;
    text-decoration: underline;
}

.yeemenu-remove-option {
    color: #94a3b8;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.yeemenu-remove-option:hover {
    color: #ef4444;
}

.yeemenu-add-group-btn {
    background: var(--yeemenu-main-color, #E4002B) !important;
    border: 1px solid var(--yeemenu-main-color, #E4002B) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    height: auto !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.yeemenu-add-group-btn:hover {
    opacity: 0.9;
}

.yeemenu-addon-sizes {
    margin-left: 30px;
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    margin-bottom: 20px;
}

.yeemenu-addon-size {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.yeemenu-addon-size input[type="text"] {
    flex: 2 !important;
    font-size: 12px !important;
    height: 28px !important;
}

.yeemenu-addon-size input[type="number"] {
    flex: 1 !important;
    font-size: 12px !important;
    height: 28px !important;
}

.yeemenu-remove-size {
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
}

.yeemenu-remove-size:hover {
    color: #ef4444;
}

.yeemenu-add-size {
    font-size: 11px !important;
    height: 24px !important;
    line-height: 22px !important;
    padding: 0 8px !important;
}

.yeemenu-addons-page {
    max-width: 900px;
    margin: 0;
    padding-top: 30px;
}

.yeemenu-addons-header {
    margin-bottom: 32px;
}

.yeemenu-addons-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.yeemenu-addons-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.yeemenu-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.yeemenu-addon-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.yeemenu-addon-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.yeemenu-addon-card-banner {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.yeemenu-addon-card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: radial-gradient(circle at 30% 50%, currentColor 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, currentColor 0%, transparent 50%);
}

.yeemenu-addon-card-banner .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    position: relative;
    z-index: 1;
}

.yeemenu-addon-card-body {
    padding: 24px;
}

.yeemenu-addon-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.yeemenu-addon-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.yeemenu-addon-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 16px 0;
}

.yeemenu-addon-features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.yeemenu-addon-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.yeemenu-addon-features li .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #22c55e;
}

.yeemenu-addon-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.yeemenu-addon-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yeemenu-addon-demo-btn:hover {
    opacity: 0.85;
    color: #ffffff !important;
}

.yeemenu-addon-demo-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.yeemenu-addon-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.yeemenu-addon-learn-more:hover {
    opacity: 0.8;
}

.yeemenu-addon-learn-more .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}