/* Balaji Organics - Admin Visual Editor & Dashboard Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- FLOATING ADMIN BAR (TOP OF FRONTEND SITE) --- */
#bo-admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 999999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.bo-admin-bar-active {
    margin-top: 46px !important;
}

#bo-admin-bar .bo-bar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #f4a03a;
    letter-spacing: 0.5px;
}

#bo-admin-bar .bo-bar-brand svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

#bo-admin-bar .bo-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bo-bar-btn {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.bo-bar-btn:hover {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
}

.bo-bar-btn.bo-btn-primary {
    background: #0284c7;
    border-color: #0369a1;
    color: #ffffff;
}

.bo-bar-btn.bo-btn-primary:hover {
    background: #0369a1;
}

.bo-bar-btn.bo-btn-success {
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
}

.bo-bar-btn.bo-btn-success:hover {
    background: #15803d;
}

.bo-bar-btn.bo-btn-active {
    background: #f4a03a !important;
    border-color: #d97706 !important;
    color: #0f172a !important;
    font-weight: 700;
}

.bo-bar-badge {
    background: #f4a03a;
    color: #0f172a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* --- INLINE EDITABLE HIGHLIGHTS --- */
.bo-editable-active [data-bo-editable] {
    outline: 2px dashed rgba(2, 132, 199, 0.5) !important;
    outline-offset: 2px;
    cursor: pointer !important;
    transition: outline 0.15s ease, background-color 0.15s ease;
}

.bo-editable-active [data-bo-editable]:hover {
    outline: 2px solid #0284c7 !important;
    background-color: rgba(2, 132, 199, 0.08) !important;
}

.bo-editable-active [data-bo-editable]:focus {
    outline: 2px solid #16a34a !important;
    background-color: rgba(22, 163, 74, 0.08) !important;
}

/* Visual Image Edit Overlay Badge */
.bo-editable-active img[data-bo-editable] {
    position: relative;
}

.bo-img-edit-wrapper {
    position: relative;
    display: inline-block;
}

.bo-img-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0f172a;
    color: #f4a03a;
    border: 1px solid #f4a03a;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bo-img-edit-btn:hover {
    background: #f4a03a;
    color: #0f172a;
}

/* --- FLOATING RICH TEXT TOOLBAR --- */
#bo-rich-toolbar {
    position: absolute;
    display: none;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000000;
    align-items: center;
}

#bo-rich-toolbar.bo-active {
    display: flex;
}

.bo-tb-btn {
    background: transparent;
    color: #cbd5e1;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bo-tb-btn:hover {
    background: #334155;
    color: #ffffff;
}

.bo-tb-divider {
    width: 1px;
    height: 18px;
    background: #334155;
    margin: 0 2px;
}

/* --- MODAL DIALOG SYSTEM --- */
.bo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.bo-modal-overlay.bo-modal-open {
    opacity: 1;
    pointer-events: auto;
}

.bo-modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.bo-modal-open .bo-modal-card {
    transform: translateY(0);
}

.bo-modal-header {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bo-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.bo-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.bo-modal-close:hover {
    color: #ffffff;
}

.bo-modal-body {
    padding: 20px;
    color: #334155;
}

.bo-form-group {
    margin-bottom: 16px;
}

.bo-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.bo-input, .bo-textarea, .bo-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.bo-input:focus, .bo-textarea:focus, .bo-select:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.bo-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- ADMIN PANEL LAYOUT (ADMIN.HTML) --- */
.bo-admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

.bo-admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.bo-sidebar-brand {
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bo-sidebar-brand span {
    color: #f4a03a;
}

.bo-sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    margin: 0;
    flex: 1;
}

.bo-sidebar-menu li {
    margin-bottom: 4px;
}

.bo-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.bo-sidebar-link:hover, .bo-sidebar-link.active {
    background: #1e293b;
    color: #ffffff;
}

.bo-sidebar-link.active {
    border-left: 4px solid #f4a03a;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.bo-admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.bo-admin-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.bo-admin-main {
    padding: 28px;
    flex: 1;
}

.bo-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.bo-stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.bo-stat-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;

}

.bo-stat-val {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 6px;
}

.bo-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
}

.bo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bo-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.bo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bo-table th, .bo-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.bo-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}

.bo-table tbody tr:hover {
    background: #f8fafc;
}

.bo-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;

}

.bo-tag-green { background: #dcfce7; color: #15803d; }
.bo-tag-amber { background: #fef3c7; color: #b45309; }
.bo-tag-blue  { background: #e0f2fe; color: #0369a1; }
