/* Soft Red Theme (Bootstrap-integrated) */
:root { --softred-bg:#faf6f6; --softred-surface:#ffffff; --softred-accent:#d84545; --softred-accent-soft:#f7e3e3; --softred-border:#e9d9d9; --softred-text:#2a1f1f; --softred-text-soft:#806565; --softred-accent-focus:#c63030; }

/* Bootstrap variable overrides (auto-propagate) */
.softred-theme{
  --bs-body-bg: var(--softred-bg);
  --bs-body-color: var(--softred-text);
  --bs-border-color: var(--softred-border);
  --bs-link-color:#C13333; --bs-link-hover-color:#A82A2A;
  --bs-primary: #D84545; --bs-primary-rgb:216,69,69;
  --bs-secondary:#4B5563; --bs-secondary-rgb:75,85,99;
  --bs-success:#2E7D32; --bs-success-rgb:46,125,50;
  --bs-warning:#F59E0B; --bs-warning-rgb:245,158,11;
  --bs-danger:#DC2626; --bs-danger-rgb:220,38,38;
  --bs-info:#0EA5E9; --bs-info-rgb:14,165,233;
  --bs-border-radius: .55rem; --bs-border-radius-sm:.5rem; --bs-border-radius-lg:.75rem;
  --bs-btn-border-radius: .55rem;
  --bs-focus-ring-opacity:.25; --bs-focus-ring-color: rgba(216,69,69,.25);
}

body.softred-theme{background:var(--softred-bg);color:var(--softred-text);} 

/* Sidebar tone & readability */
.softred-theme .sidebar{background:linear-gradient(180deg,#c94141 0%, #b73333 55%, #a72c2c 100%); color:#fff;}
.softred-theme .brand{background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); border-radius:12px; padding:.35rem .5rem;}
.softred-theme .sys-title{font-weight:700;color:#fff;font-size:.86rem;letter-spacing:.4px; text-transform:none;}
.softred-theme .sys-sub{color:#fff;opacity:.9;font-size:.62rem;}
.softred-theme .logo-wrap{background:#ffffff1a!important; box-shadow:0 0 0 2px rgba(255,255,255,.25) inset, 0 1px 2px rgba(0,0,0,.08);} 

/* Menu items */
.softred-theme .menu-item{ color:#fff !important; opacity:.96; border:1px solid transparent; padding:.55rem .75rem .55rem .85rem; }
.softred-theme .menu-item .bi{ opacity:.95; }
.softred-theme .menu-item:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.18); }
.softred-theme .menu-item.active{ background:rgba(255,255,255,.16) !important; border-color:rgba(255,255,255,.28); box-shadow:none; }
.softred-theme .menu-item.active::before{ background:#ffe082 !important; box-shadow:0 0 0 1px rgba(0,0,0,.08); }
.softred-theme .sidebar-footer{ color:rgba(255,255,255,.9); }

/* Cards / controls */
.softred-theme .card, .softred-theme .chart-card{border:1px solid var(--softred-border);box-shadow:0 6px 16px -8px rgba(0,0,0,.12);} 
.softred-theme .kpi{background:#fff;border:1px solid var(--softred-border);} 
.softred-theme .badge-softred{background:var(--softred-accent-soft);color:var(--softred-accent-focus);} 
.softred-theme a{color:var(--softred-accent-focus);} 
.softred-theme a:hover{text-decoration:underline;} 

/* Buttons: standardized */
.softred-theme .btn{ border-radius:var(--bs-btn-border-radius,.55rem); font-weight:600; transition:.15s ease-in-out; }
/* Primary */
.softred-theme .btn-primary{ background:#D84545; border-color:#D84545; color:#fff; }
.softred-theme .btn-primary:hover{ background:#C13333; border-color:#C13333; }
.softred-theme .btn-primary:active{ background:#A82A2A; border-color:#A82A2A; }
.softred-theme .btn-primary:focus-visible{ box-shadow:0 0 0 .2rem rgba(216,69,69,.35); }
/* Secondary */
.softred-theme .btn-secondary{ background:#4B5563; border-color:#4B5563; }
.softred-theme .btn-secondary:hover{ background:#3C4654; border-color:#3C4654; }
/* Success */
.softred-theme .btn-success{ background:#2E7D32; border-color:#2E7D32; }
.softred-theme .btn-success:hover{ background:#256628; border-color:#256628; }
/* Warning (ensure readable text) */
.softred-theme .btn-warning{ background:#F59E0B; border-color:#F59E0B; color:#111; }
.softred-theme .btn-warning:hover{ background:#DB8C09; border-color:#DB8C09; color:#111; }
/* Danger */
.softred-theme .btn-danger{ background:#DC2626; border-color:#DC2626; }
.softred-theme .btn-danger:hover{ background:#B71C1C; border-color:#B71C1C; }
/* Info */
.softred-theme .btn-info{ background:#0EA5E9; border-color:#0EA5E9; }
.softred-theme .btn-info:hover{ background:#0C8EC6; border-color:#0C8EC6; }

/* Outline variants tuned */
.softred-theme .btn-outline-primary{ color:#C13333; border-color:#D84545; }
.softred-theme .btn-outline-primary:hover{ background:#F9E0E0; color:#A82A2A; border-color:#D84545; }
.softred-theme .btn-outline-danger{color:#B71C1C;border-color:#DC2626;}
.softred-theme .btn-outline-danger:hover{background:#FDECEC;color:#921919;border-color:#DC2626;}
.softred-theme .btn-outline-success{color:#256628;border-color:#2E7D32;}
.softred-theme .btn-outline-success:hover{background:#E6F4EA;color:#1E4F24;border-color:#2E7D32;}

/* Soft (low-emphasis) buttons */
.softred-theme .btn-soft-primary{ background:#F9E0E0; color:#A82A2A; border:1px solid #E9B9B9; }
.softred-theme .btn-soft-primary:hover{ background:#F4D6D6; color:#922323; border-color:#E3AFAF; }
.softred-theme .btn-soft-danger{ background:#FDECEC; color:#992020; border:1px solid #F5B3B3; }
.softred-theme .btn-soft-danger:hover{ background:#FADADA; color:#7F1616; border-color:#EFA6A6; }
.softred-theme .btn-soft-success{ background:#E6F4EA; color:#14532D; border:1px solid #BEE3C6; }
.softred-theme .btn-soft-success:hover{ background:#DAEFE1; color:#0f3e22; border-color:#B2DDBB; }
.softred-theme .btn-soft-warning{ background:#FFF4D6; color:#5C3D00; border:1px solid #F5D69B; }
.softred-theme .btn-soft-warning:hover{ background:#FFEFC3; color:#4B3200; border-color:#EBCB8B; }
.softred-theme .btn-soft-info{ background:#E1F2FD; color:#0B5E7A; border:1px solid #BFE7FA; }
.softred-theme .btn-soft-info:hover{ background:#D6EDFB; color:#094C62; border-color:#B1E2F8; }
.softred-theme .btn-soft-secondary{ background:#F3F4F6; color:#374151; border:1px solid #E5E7EB; }
.softred-theme .btn-soft-secondary:hover{ background:#EDEFF2; color:#273142; border-color:#E0E2E7; }

/* Forms */
.softred-theme .form-control:focus, .softred-theme .form-select:focus{box-shadow:0 0 0 .15rem rgba(216,69,69,.25);border-color:var(--softred-accent);} 

/* Tables & pagination */
.softred-theme .table thead th{background:#f9efef;border-bottom:1px solid var(--softred-border);} 
.softred-theme .pagination .page-link{color:#C13333;} 
.softred-theme .pagination .page-item.active .page-link{background:#D84545;border-color:#D84545;color:#fff;} 

/* Progress colors tune */
.softred-theme .progress-bar.bg-danger{background:#d84545!important;} 
.softred-theme .progress-bar.bg-success{background:#2e7d32!important;} 
.softred-theme .progress-bar.bg-warning{background:#f9b233!important;color:#000;}
.news-card img{object-fit:cover;height:140px}
.news-card .card-title a{color:#b30017}
.news-card .card-title a:hover{text-decoration:underline}
.news-item:hover{background:#fff5f5}
.featured-news a{color:#b30017} 
.tag-token-container{position:relative}
#tagSuggest{max-width:320px;}
#tagSuggest .badge{cursor:pointer;font-weight:500;}
.tinymce-inline-wrapper{border:1px solid var(--softred-border);}
