/* CySoftSolutions - Admin Panel Stylesheet */

/* ===========================
   Base
   =========================== */
body { font-family: 'Inter', sans-serif; }
.font-heading { font-family: 'Space Grotesk', sans-serif; }

/* ===========================
   Navy colors
   =========================== */
.bg-navy-900 { background-color: #0a1628; }
.bg-navy-950 { background-color: #060d1a; }

/* ===========================
   Admin Input Components
   =========================== */
.admin-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}
.admin-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.dark .admin-input {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: #f1f5f9;
}
.dark .admin-input:focus {
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.8);
}
.admin-input::placeholder { color: #9ca3af; }

textarea.admin-input { resize: vertical; min-height: 80px; }
select.admin-input { cursor: pointer; }

.admin-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}
.dark .admin-label { color: #d1d5db; }

.admin-file {
    width: 100%;
    font-size: 0.8125rem;
    color: #6b7280;
    cursor: pointer;
}
.admin-file::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: all 0.2s;
}
.admin-file::-webkit-file-upload-button:hover {
    background: #dbeafe;
}

/* ===========================
   Table
   =========================== */
table { border-collapse: collapse; }
th, td { vertical-align: middle; }

/* ===========================
   Sidebar
   =========================== */
#sidebar { scrollbar-width: thin; scrollbar-color: rgba(59,130,246,0.3) transparent; }
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 2px; }

/* ===========================
   Transitions
   =========================== */
.transition-300 { transition: all 0.3s ease; }

/* ===========================
   Custom scrollbar
   =========================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 3px; }

/* ===========================
   Focus
   =========================== */
*:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 4px; }

/* ===========================
   Badge indicator
   =========================== */
.badge-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ===========================
   Jodit Editor Overrides
   =========================== */
.jodit-container:not(.jodit_inline) {
    border-radius: 0.625rem !important;
    border-color: #e5e7eb !important;
    overflow: hidden;
}
.dark .jodit-container:not(.jodit_inline) {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.jodit-toolbar__box {
    border-radius: 0 !important;
}
.jodit-wysiwyg {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
/* Ensure Jodit wrapper fills full width in grid layouts */
.jodit-react-container,
.jodit-container {
    width: 100% !important;
}
/* Fix Jodit in grid 2-col layout */
.grid .jodit-container {
    min-width: 0;
}
/* Dark mode body content area */
.jodit_theme_dark .jodit-wysiwyg {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}
