/* Premium Bangla Newspaper Admin Panel Styling */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

body.rison-admin-panel {
    font-family: 'Noto Sans Bengali', sans-serif !important;
}

/* Smart Sidebar Design */
#sidebar,
#sidebar::after,
#sidebar ul.components {
    background: #111827 !important; /* Elegant dark blue/gray */
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2) !important;
}

#sidebar ul.components {
    padding: 15px 10px !important;
}

#sidebar ul p {
    color: #fff !important;
}

#sidebar ul li a,
#sidebar ul > li > ul > li a {
    color: #9ca3af !important;
    font-family: 'Noto Sans Bengali', sans-serif !important;
    font-size: 14.5px !important;
    background: transparent !important;
    margin: 4px 8px !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
}

#sidebar ul > li > ul {
    margin-left: 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-left: 5px !important;
}

#sidebar ul li a:hover, 
#sidebar ul > li > ul > li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f3f4f6 !important;
    transform: translateX(3px) !important;
}

#sidebar ul li.active > a,
#sidebar ul.collapse.show li.active > a.active {
    background: #900C3F !important; /* Premium maroon */
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(144, 12, 63, 0.4) !important;
}

#sidebar ul li a i {
    color: #6b7280 !important;
    font-size: 16px !important;
    margin-right: 12px !important;
    transition: all 0.25s ease !important;
    width: 20px !important;
    text-align: center !important;
}

#sidebar ul li a:hover i, 
#sidebar ul li.active > a i {
    color: #fff !important;
    transform: scale(1.1) !important;
}

#sidebar ul > li > ul > li a:hover span,
#sidebar ul > li > ul > li.active > a span {
    color: #fff !important;
}

/* Header Styling */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 2px solid #900C3F; /* Maroon accent */
}

.header .admin-logo {
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
}

.header .menu-toggle-button .my-toggl-icon span {
    background-color: #900C3F;
}

/* Card & Content Styling */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: none;
    border-top: 3px solid #900C3F;
}

.btn-primary {
    background-color: #900C3F !important;
    border-color: #900C3F !important;
}

.btn-primary:hover {
    background-color: #700931 !important;
    border-color: #700931 !important;
}

.page-item.active .page-link {
    background-color: #900C3F;
    border-color: #900C3F;
}

/* Table Headers */
thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-family: 'Noto Sans Bengali', sans-serif;
}

/* Add Post Format Area Styling */
.add-post-area {
    display: block;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    border-top: 4px solid #900C3F;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.add-post-area:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(144, 12, 63, 0.15);
    border-color: #900C3F;
}

.add-post-area .icon {
    font-size: 45px;
    color: #900C3F;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.add-post-area:hover .icon {
    transform: scale(1.1);
}

.add-post-area h6 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.add-post-area p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .card-title {
    font-family: 'Noto Sans Bengali', sans-serif !important;
    font-weight: 600;
}

/* Modern Nav Tabs */
.nav-tabs {
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: #900C3F;
    border-bottom: 3px solid #f0a8b9;
}

.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active {
    color: #900C3F !important;
    background-color: transparent !important;
    border-color: transparent transparent #900C3F transparent !important;
}

/* Modern Form Inputs */
.form-control, .input-field {
    border-radius: 8px;
    border: 1px solid #dce1e7;
    padding: 10px 15px;
    box-shadow: none;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.form-control:focus, .input-field:focus {
    background-color: #fff;
    border-color: #900C3F;
    box-shadow: 0 0 0 3px rgba(144, 12, 63, 0.1);
}

/* Modern Tables */
.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.table thead th {
    background-color: #f8f9fc !important;
    color: #4a5568 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    font-size: 14px;
}

.table tbody tr:hover {
    background-color: #fdfdfd;
}

/* Dashboard Summary Cards */
.row-cards-one .mycard {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
    overflow: hidden;
}

/* Action Buttons in Tables */
.action-list a {
    background: #f8f9fa !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.action-list a:hover {
    background: #900C3F !important;
    color: #fff !important;
    border-color: #900C3F;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(144, 12, 63, 0.2);
}

/* Dropdown styling */
.nice-select {
    border-radius: 8px !important;
    border: 1px solid #dce1e7 !important;
}

.nice-select:focus, .nice-select.open {
    border-color: #900C3F !important;
}

/* Modernizing WYSIWYG Editor (nicEdit) */
.nicEdit-main {
    background-color: #fff !important;
    outline: none !important;
    padding: 15px 20px !important;
    font-family: 'Noto Sans Bengali', sans-serif !important;
    font-size: 15px !important;
    color: #333 !important;
    min-height: 250px !important;
    line-height: 1.6 !important;
}

div.nicEdit-panelContain {
    background-color: #f8f9fc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 8px !important;
}

div.nicEdit-panel {
    background-color: transparent !important;
    border: none !important;
}

div.nicEdit-buttonContain {
    background-color: transparent !important;
    border: none !important;
    margin: 0 2px !important;
}

div.nicEdit-button {
    background-color: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    padding: 4px !important;
}

div.nicEdit-button:hover {
    background-color: #edf2f7 !important;
    border-color: #cbd5e0 !important;
}

div.nicEdit-selectContain {
    background-color: #fff !important;
    border: 1px solid #dce1e7 !important;
    border-radius: 4px !important;
    margin: 2px 4px !important;
    min-width: 80px !important;
}

div.nicEdit-selectContain:hover {
    border-color: #900C3F !important;
}

div.nicEdit-selectTxt {
    font-family: 'Noto Sans Bengali', sans-serif !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    padding: 2px 5px !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Fix Dropdown Pane in nicEdit */
.nicEdit-pane {
    background-color: #fff !important;
    border: 1px solid #dce1e7 !important;
    border-radius: 6px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    padding: 5px 0 !important;
    z-index: 9999 !important;
    width: auto !important;
    min-width: 160px !important;
    white-space: nowrap !important;
}

.nicEdit-pane h1, .nicEdit-pane h2, .nicEdit-pane h3, 
.nicEdit-pane h4, .nicEdit-pane h5, .nicEdit-pane h6 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important; /* Prevent huge headings from breaking the dropdown width */
    line-height: 1.5 !important;
    font-weight: normal !important;
    white-space: nowrap !important;
}

.nicEdit-paneItem {
    padding: 5px 15px !important;
    font-family: 'Noto Sans Bengali', sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
    width: auto !important;
}

.nicEdit-paneItem:hover {
    background-color: #f8f9fc !important;
    color: #900C3F !important;
}

/* Hack to style the outer container of nicEdit which usually has inline styles */
.nicEdit-panelContain {
    border-radius: 8px 8px 0 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
}
.nicEdit-main {
    border-radius: 0 0 8px 8px !important;
    border: 1px solid #e2e8f0 !important;
}
/* Summernote Fixes */
.note-editor .dropdown-toggle::after {
    display: none !important;
}
.note-editor .dropdown-toggle::before {
    display: none !important;
}
.note-editor.note-frame {
    border: 1px solid #dce1e7 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
.note-editor .note-toolbar {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dce1e7 !important;
}
/* Fix Dropdown Crop and Scroll */
.note-editor.note-frame {
    overflow: visible !important;
}
.note-dropdown-menu {
    max-height: 250px !important;
    overflow-y: auto !important;
}
