/* ICR Pedigree – Clean theme stylesheet (scoped)
   Usage (to avoid conflicts):
   Add class="theme-icr" to <body> (or to your top wrapper).
*/

:root{
  /* Backgrounds */
  --icr-bg: #000000;
  --icr-bg-2: #0d0d0d;
  --icr-bg-3: #1a1a1a;

  /* Text */
  --icr-text:#ffffff;
  --icr-accent: #d4af37;   /* Elegant gold */

  /* Hover */
  --icr-hover: #f5c542;    /* Champagne gold */

  /* Accent colors */
  --icr-gold: #d4af37;
  --icr-warm-gold: #e6c86e; /* Warm Champagne gold */
  
  /* Social (keep brand but soften UI base) */
  --fb-blue:rgba(66, 103, 178, 1);
  --fb-blue-brand:rgba(66,103,178,1);
  --insta-pink: rgba(214, 41, 118, 1);
  --insta-pink-brand:rgba(214,41,118,1);
  --art-red:rgba(255,0,0,1);

  /* Base white */
  --icr-white:#ffffff;

  --icr-border:rgba(255, 255, 255, .15);

  --icr-text-box-shadow: rgba(212, 175, 55, .35);

  /* Subtle / Secondary text */
  --icr-muted:rgba(255, 255, 255, .75);

  /* Disabled state */
  --icr-disabled: rgba(80, 80, 80, .4);

  /* Focus ring / highlight */
  --icr-focus: rgba(255,255,255,.35);

  /* Headings */
  --icr-heading: #f3f1e7;

  --icr-danger: #c43d3d; /* Deep Crimson */
  --icr-warning: #e0b84c; /* Muted Amber / Golden Yellow */
  --icr-success: #3fa76a; /* Muted Emerald Green */ 
  --icr-primary: var(--icr-gold);
}

/* Global */
body.theme-icr{ 
  background: var(--icr-bg);
  /* background-image: url("../img/background.png"); */
  background-repeat: repeat;
  color: var(--icr-text); 
  font-size: .9rem; 
}

@media (max-width: 767.98px){
  body.theme-icr{
    background-size: 320px 320px, auto;
  }
}


body.theme-icr .fs-1{
  font-size: 2rem !important;      /* 32px */
  line-height: 1.2 !important;
}

body.theme-icr .fs-2{
  font-size: 1.75rem !important;   /* 28px */
  line-height: 1.2 !important;
}

body.theme-icr .fs-3{
  font-size: 1.5rem !important;    /* 24px */
  line-height: 1.2 !important;
}

body.theme-icr .fs-4{
  font-size: 1.25rem !important;   /* 20px */
  line-height: 1.15 !important;
}

body.theme-icr .fs-5{
  font-size: 1.1rem !important;    /* 17.6px */
  line-height: 1.15 !important;
}

body.theme-icr .fs-6{
  font-size: .95rem !important;    /* 15.2px */
  line-height: 1.15 !important;
}

body.theme-icr .fs-7{
  font-size: .85rem !important;    /* 13.6px */
  line-height: 1.1 !important;
}


/* Links */
body.theme-icr a{
  color: var(--icr-accent); /* gold */
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
}

body.theme-icr a:hover{
  color: var(--icr-hover);
  background: rgba(255,255,255,.08);
  border-radius: .35rem;
}

body.theme-icr a.active{
  color: var(--icr-white);
  background: rgba(255,255,255,.12);
  border-radius: .4rem;
  padding: .2rem .4rem;
}


body.theme-icr form{
  margin-bottom: 18px;
}


/* ===== NOTIFICATION BADGE ===== */
/* ===== WRAPPER ===== */
body.theme-icr .notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: .28rem .45rem;
  border-radius: .6rem;

  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* ===== ICON ===== */
body.theme-icr .notif-icon{
  font-size: 1.15rem;
  color: rgba(255,255,255,.72) !important;
  transition: color .18s ease;
}

/* ===== HOVER ===== */
body.theme-icr .notif-wrapper:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

body.theme-icr .notif-wrapper:hover .notif-icon{
  color: #ffffff !important;
}

/* ===== ACTIVE ===== */
body.theme-icr .notif-wrapper.active{
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

body.theme-icr .notif-wrapper.active .notif-icon{
  color: #ffffff !important;
}

/* ==== BADGE ==== */
body.theme-icr .notif-badge{
  position: absolute;
  top: -4px;
  right: -6px;

  background: var(--icr-gold);
  color: #000;

  font-size: .65rem;
  font-weight: 600;

  min-width: 16px;
  height: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  padding: 0 4px;
  line-height: 1;

  box-shadow: 0 0 0 2px #000;
  transform: translate(20%, -20%);
}


/* ==== USER TOGGLE ==== */
body.theme-icr .icr-topbar .icr-user-toggle{
  color: rgba(255,255,255,.75);
  padding: .28rem .45rem;
  border-radius: .65rem;

  transition: background .15s ease, color .15s ease;
}

body.theme-icr .icr-topbar .icr-user-toggle:hover,
body.theme-icr .icr-topbar .icr-user-toggle[aria-expanded="true"]{
  background: rgba(255,255,255,.08);
  color: var(--icr-gold);
}

/* mobile icon links */
@media (max-width: 767.98px){
  body.theme-icr .icr-top-actions > a{
    padding: .3rem .4rem;
    border-radius: .5rem;
  }
}


/* ===== NAVBAR UNIFIED SYSTEM ===== */
body.theme-icr .icr-topbar{
  position: relative;
  z-index: 1030;

  border-bottom: 1px solid rgba(212,175,55,.18);

  box-shadow:
    0 1px 0 rgba(212,175,55,.12),
    0 10px 22px rgba(0,0,0,.45);
}

body.theme-icr header .icr-mainnav{
  position: relative;
  z-index: 1020;

  border-bottom: 1px solid rgba(212,175,55,.18);

  box-shadow:
    0 1px 0 rgba(212,175,55,.12),
    0 10px 22px rgba(0,0,0,.45);
}

body.theme-icr .icr-topbar .icr-user-menu{
  z-index: 1055 !important;
}

body.theme-icr .icr-topbar,
body.theme-icr header .icr-mainnav{
  backdrop-filter: blur(6px);
}

/* Base (top + main) */
body.theme-icr .icr-topbar a,
body.theme-icr header .icr-mainnav .nav-link{
  color: rgba(255,255,255,.72);
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: .35rem .6rem;
  border-radius: .6rem;

  transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Hover */
body.theme-icr .icr-topbar a:hover,
body.theme-icr header .icr-mainnav .nav-link:hover{
  background: rgba(255,255,255,.08);
  color: var(--icr-gold);
}

/* Active */
body.theme-icr .icr-topbar a.active,
body.theme-icr header .icr-mainnav .nav-link.active{
  background: rgba(255,255,255,.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.15);

  font-weight: 600;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

body.theme-icr .icr-topbar .notif-wrapper{
  border-radius: 999px;
}

body.theme-icr .icr-topbar .notif-wrapper:hover{
  background: rgba(255,255,255,.08);
}

body.theme-icr .icr-topbar .notif-wrapper.active{
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

body.theme-icr .icr-topbar .notif-wrapper.active .notif-icon{
  color: #ffffff !important;
}

/* Right alignment helper (use one of these classes on the right container) */
body.theme-icr .nav-top-right,
body.theme-icr .top-navbar-right,
body.theme-icr .header-right{
  margin-left:auto !important;
  display:flex !important;
  align-items:center !important;
  gap:1rem !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
}


/* ===== UNIFIED DROPDOWN FOR ALL NAVBARS ===== */

/* shell */
body.theme-icr .navbar .dropdown-menu,
body.theme-icr .icr-user-menu{
  background: #111;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .85rem;
  padding: .45rem;
  min-width: 220px;

  box-shadow:
    0 14px 28px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* item base */
body.theme-icr .navbar .dropdown-menu .dropdown-item,
body.theme-icr .icr-user-menu .dropdown-item{
  display: flex;
  align-items: center;
  gap: 8px;

  color: rgba(255,255,255,.85);
  border-radius: .6rem;
  padding: .52rem .72rem;
  font-weight: 500;

  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

/* hover */
body.theme-icr .navbar .dropdown-menu .dropdown-item:hover,
body.theme-icr .icr-user-menu .dropdown-item:hover{
  background: rgba(255,255,255,.08);
  color: var(--icr-gold);
}

/* active */
body.theme-icr .navbar .dropdown-menu .dropdown-item.active,
body.theme-icr .navbar .dropdown-menu .dropdown-item:active,
body.theme-icr .icr-user-menu .dropdown-item.active,
body.theme-icr .icr-user-menu .dropdown-item:active{
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* divider */
body.theme-icr .navbar .dropdown-menu .dropdown-divider,
body.theme-icr .icr-user-menu .dropdown-divider{
  border-top: 1px solid rgba(255,255,255,.10);
  margin: .4rem 0;
}

/* dropdown toggle itself */
body.theme-icr .navbar .dropdown-toggle{
  color: rgba(255,255,255,.72);
  border-radius: .6rem;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

body.theme-icr .navbar .dropdown-toggle:hover,
body.theme-icr .navbar .dropdown-toggle[aria-expanded="true"]{
  background: rgba(255,255,255,.08);
  color: var(--icr-gold);
}

/* remove bootstrap harsh active blue */
body.theme-icr .navbar .dropdown-item:focus,
body.theme-icr .navbar .dropdown-item:active{
  box-shadow: none;
}

/* mobile */
@media (max-width: 767.98px){
  body.theme-icr .navbar .dropdown-menu,
  body.theme-icr .icr-user-menu{
    min-width: 200px;
    border-radius: .75rem;
    padding: .4rem;
  }

  body.theme-icr .navbar .dropdown-menu .dropdown-item,
  body.theme-icr .icr-user-menu .dropdown-item{
    padding: .5rem .65rem;
  }
}

/* Prevent the .dropdown wrapper from stretching wide */
body.theme-icr .dropdown{ width: auto !important; }
body.theme-icr .dropdown > .dropdown-toggle{ width: auto !important; max-width: 100% !important; }


/* Theme headings */
body.theme-icr h1.text-theme,
body.theme-icr h2.text-theme,
body.theme-icr h3.text-theme,
body.theme-icr h4.text-theme,
body.theme-icr h5.text-theme{
  color: var(--icr-heading);
}

/* Accent text */
body.theme-icr .text-theme{
  color: var(--icr-accent);
}

/* Detail label (dt) */
body.theme-icr .canine-detail-list dt{
  color: var(--icr-primary);
  font-weight: 600;
}


/* Core Accent */
.text-accent   { color: var(--icr-accent) !important; }
.text-muted    { color: var(--icr-muted) !important; }
.text-white    { color: var(--icr-white) !important; }
.text-black    { color: rgba(0,0,0,.9) !important; }

/* Brand Tone */
.text-gold     { color: var(--icr-accent) !important; }
.text-green    { color: var(--icr-primary) !important; }
.text-ivory    { color: var(--icr-heading) !important; }

/* Semantic States */
.text-danger   { color: var(--icr-danger) !important; }
.text-success  { color: var(--icr-success) !important; }
.text-warning  { color: var(--icr-warning) !important; }
.text-info     { color: var(--icr-primary) !important; }

.text-red { color: var(--icr-danger) !important; }

.text-fb-blue { color: var(--fb-blue) !important; }
.text-fb-blue:hover{ color: #b9f0ee !important; }
.text-insta-pink { color: var(--insta-pink) !important; }
.text-insta-pink:hover{ color: #ffc2d1 !important; }
.text-art-red { color: var(--art-red) !important; }

.text-nowrap { white-space: nowrap; }

.canine-name{
  color: var(--icr-accent);          
  font-weight: 600;
}

.date{
  color: var(--icr-muted);           
  font-size: 0.75rem;
}

body.theme-icr .icr-log-date{
    color: #ffffff;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
}

.desc{
  color: var(--icr-primary);         
  font-size: 0.9rem;
  font-weight: 500;
}

.text-icr-brand{
  color: var(--icr-gold) !important;
  font-weight: 700;
  letter-spacing: .5px;

  text-shadow: 0 0 6px rgba(212,175,55,.18);
}

.text-icr-brand:hover{
  text-shadow: 0 0 10px rgba(212,175,55,.35);
}

.truncate-text{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}


/* Divider */
body.theme-icr hr{
  border: 0;
  height: 2px;
  background-color: #d4af37;
  margin: 30px 0;
}

/* Themed border */
body.theme-icr .border-theme{
  border: 1px solid var(--icr-border) !important;
}


/* === Theme buttons (primary) === */
body.theme-icr button.btn:has(> i:only-child){
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: .6rem; 
}

body.theme-icr button.btn i:hover{
  transform: translateY(-1px);
}

body.theme-icr .button-theme i,
body.theme-icr .button-outline-theme i { margin: 0; padding: 0; }

body.theme-icr .bg-theme,
body.theme-icr a.button-theme,
body.theme-icr button.button-theme{ 
  background: var(--icr-gold) !important;
  color: #000 !important;

  border: 2px solid var(--icr-gold) !important;
  border-radius: .6rem;

  padding: .45rem .85rem !important;
  font-weight: 600 !important;
  letter-spacing: .2px;

  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .05s ease;
}

body.theme-icr a.button-theme:hover,
body.theme-icr button.button-theme:hover{
  background: var(--icr-hover) !important;
  color: #000 !important;

  border-color: var(--icr-hover) !important;

  box-shadow:
    0 0 0 .2rem rgba(255,255,255,.12),
    0 6px 16px rgba(0,0,0,.28);

  text-decoration: none;
  transform: translateY(-1px);
}

body.theme-icr a.button-theme:active,
body.theme-icr button.button-theme:active{
  transform: translateY(0);

  background: var(--icr-gold) !important;
  color: #000 !important;
  border-color: var(--icr-gold) !important;

  box-shadow: inset 0 2px 6px rgba(0,0,0,.25);
}

/* Remove focus glow */
body.theme-icr .user-dropdown,
body.theme-icr .dropdown-toggle{ outline:none !important; }
body.theme-icr .user-dropdown:focus,
body.theme-icr .dropdown-toggle:focus,
body.theme-icr button:focus,
body.theme-icr a:focus{ outline:none !important; box-shadow:none !important; }


/* Outline */
body.theme-icr a.button-outline-theme,
body.theme-icr button.button-outline-theme{
  background: transparent !important;
  color: rgba(255,255,255,.85) !important;

  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: .6rem;

  padding: .45rem .85rem !important;
  font-weight: 600 !important;

  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

body.theme-icr a.button-outline-theme:hover,
body.theme-icr button.button-outline-theme:hover{
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;

  border-color: rgba(255,255,255,.4) !important;

  box-shadow:
    0 0 0 .12rem rgba(255,255,255,.08),
    0 6px 14px rgba(0,0,0,.28);

  transform: translateY(-1px);
}

body.theme-icr a.button-outline-theme:active,
body.theme-icr button.button-outline-theme:active{
  transform: translateY(0);

  background: rgba(255,255,255,.12) !important;

  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.25);
}


/* === Theme buttons (secondary) === */
body.theme-icr button.button-theme-secondary{
  background: linear-gradient(
    180deg,
    rgba(42,42,42,1),
    rgba(22,22,22,1)
  ) !important;

  border: 1px solid rgba(255,255,255,.16) !important;
  color: #ffffff !important;

  border-radius: .6rem;
  padding: .45rem .85rem !important;
  font-weight: 600 !important;
  letter-spacing: .2px;

  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .05s ease;
}

body.theme-icr button.button-theme-secondary:hover{
  background: linear-gradient(
    180deg,
    rgba(58,58,58,1),
    rgba(30,30,30,1)
  ) !important;

  color: #ffffff !important;
  border-color: rgba(255,255,255,.28) !important;

  box-shadow:
    0 0 0 .16rem rgba(255,255,255,.08),
    0 6px 14px rgba(0,0,0,.28);

  transform: translateY(-1px);
}

body.theme-icr button.button-theme-secondary:active{
  transform: translateY(0);

  background: linear-gradient(
    180deg,
    rgba(24,24,24,1),
    rgba(12,12,12,1)
  ) !important;

  box-shadow: inset 0 2px 6px rgba(0,0,0,.28);
}


/* === Theme button tertiary === */
body.theme-icr button.button-theme-tertiary{ 
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.75) !important;

  box-shadow: none;

  border-radius: .6rem;
  letter-spacing: .2px;

  padding: .45rem .85rem !important;
  font-weight: 600 !important;

  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}

body.theme-icr button.button-theme-tertiary:hover{
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.25) !important;

  transform: translateY(-1px);
}

body.theme-icr button.button-theme-tertiary:active{
  transform: translateY(0);

  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.18) !important;

  box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
}


/* === PAGINATION === */
body.theme-icr .pagination{
  gap: .2rem;                 /* jarak antar item */
}

/* Anchor as button */
/* === Pagination Base === */
body.theme-icr .pagination a.button-theme{
  background: rgba(0,0,0,.55) !important;
  color: rgba(255,255,255,.88) !important;

  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: .6rem !important;

  min-width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 .75rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;

  box-shadow: 0 6px 14px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(4px);

  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .08s ease;
}

/* Hover */
body.theme-icr .pagination a.button-theme:hover{
  background: rgba(0,0,0,.78) !important;
  color: #ffffff !important;

  border-color: rgba(255,255,255,.28) !important;

  box-shadow: 0 8px 18px rgba(0,0,0,.34) !important;
  transform: translateY(-1px);
}

/* Active / current page */
body.theme-icr .pagination a.button-theme.active,
body.theme-icr .pagination a.button-theme.current,
body.theme-icr .pagination .active a.button-theme,
body.theme-icr .pagination .current a.button-theme{
  background: var(--icr-gold) !important;
  color: #000 !important;

  border-color: var(--icr-gold) !important;

  box-shadow:
    0 8px 18px rgba(0,0,0,.34),
    0 0 0 2px rgba(255,255,255,.08) !important;
}

/* Optional: remove default li spacing */
body.theme-icr .pagination li{
  margin: 0 !important;
}


/* ===== CROP MODAL THEME OVERRIDE ===== */
body.theme-icr .cropper-view-box{
  outline: 2px solid rgba(255,255,255,.9) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}

body.theme-icr .cropper-line{
  background-color: rgba(255,255,255,.92) !important;
}

body.theme-icr .cropper-point{
  background-color: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
}

body.theme-icr .cropper-point.point-se{
  width: 12px !important;
  height: 12px !important;
  opacity: 1 !important;
}

/* Overlay */
body.theme-icr .cropper-modal{
  background-color: rgba(0,0,0,.55);
  opacity: 1;
}

/* Footer buttons (keep consistent sizing) */
body.theme-icr .modal-footer .btn{
  min-width: 110px;
  height: 42px;
  font-weight: 600;
}


/* Footer (mobile centered, desktop 3 cols)
   Add class="footer-icr" on <footer> and create .footer-grid with 3 columns. */
body.theme-icr footer{
  background-color: var(--icr-bg-3);
  color:var(--icr-text);
  border-top:2px solid var(--icr-border);
  padding:2rem 1rem;
}

body.theme-icr footer #mengerti{
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--icr-warm-gold);
}

body.theme-icr footer .footer-link {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 3px 0;
}

body.theme-icr footer .footer-title{ 
  color:var(--icr-accent); 
  font-size: 1.1rem; 
  font-weight:700; 
  margin-bottom:.1rem; 
}

body.theme-icr footer .footer-text{ 
  font-size: 0.95rem;
  font-weight: 500;
  color: #e8e8e8;
}

body.theme-icr footer .footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.25rem;
  align-items:center;
  text-align:center;
}

body.theme-icr footer .footer-org-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--icr-white);
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
}

body.theme-icr footer .footer-copy {
  margin-top:1.5rem;
  text-align:center;
  font-size:0.8rem;
  color:var(--icr-muted);
}

.footer-bg{ 
  background-color: #fff;
  padding: 0.3vh;
}

@media (min-width: 767.98px){
  body.theme-icr footer .footer-grid{ grid-template-columns:1fr 1fr 1fr; text-align:left; }
  body.theme-icr footer .footer-grid .footer-col-center{ text-align:center; }
  body.theme-icr footer .footer-grid .footer-col-right{ text-align:right; }
}

body.theme-icr .footer-logo{
  width:75px; 
  height:75px;
  object-fit:contain;
  display:inline-block;
}


/* LOGO */
.icr-logo{ 
  height:32px; 
  width:auto; 
}

.user-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.img-fluid.img-thumbnail.profile {
  max-width: 100px;
  border-radius: 50%;
}


.sticky-top {
    z-index: 1000;
    overflow: visible !important;
}


/* View Canine */
body.theme-icr .dog-card{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,.08);
  border-radius: .9rem;

  box-shadow: 0 12px 26px rgba(0,0,0,.35);

  transition: all .18s ease;
}

body.theme-icr .dog-card:hover{
  background: rgba(10,10,10,.68);
  border-color: rgba(255,255,255,.14);
} 

body.theme-icr .dog-card:first-of-type{
  margin-top: 18px !important;
}

body.theme-icr .dog-action-icons{
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);

  border-radius: .8rem;
  padding: .4rem;

  display: inline-flex;
  gap: 6px;

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.dog-photo{
  border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);

  box-shadow: 0 6px 14px rgba(0,0,0,.35);

  cursor: zoom-in;
}

.dog-photo-detail {
  height: 200px;
  width: auto;
}

.dog-info-text{
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}

.dog-info-theme{
  color: var(--icr-gold);
  font-size: .78rem;
  letter-spacing: .3px;
  text-transform: uppercase;
}


/* === WA === */
body.theme-icr .wa,
body.theme-icr .wa:hover,
body.theme-icr .wa:focus,
body.theme-icr .wa:active{
  border-radius: 50% !important;
  text-decoration: none !important;
}

body.theme-icr .wa{
  background: rgba(0,0,0,.82) !important;
  color: #25D366 !important;

  border: 1px solid rgba(255,255,255,.18);

  z-index: 1022;

  box-shadow:
    0 10px 22px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
}

@media (max-width: 767.98px){
  body.theme-icr .wa{
    top: 60% !important;
  }
}

@keyframes waPulse {
  0%,100% { 
    box-shadow: 0 10px 22px rgba(0,0,0,.35);
  }
  50% {     
    box-shadow:
      0 10px 22px rgba(0,0,0,.35),
      0 0 0 8px rgba(255,255,255,.06);
  }
}

/* hover */
body.theme-icr .wa:hover{
  background: rgba(0,0,0,.95) !important;
  color: var(--icr-gold) !important;

  border-color: rgba(212,175,55,.35);

  box-shadow:
    0 14px 28px rgba(0,0,0,.45),
    0 0 0 4px rgba(255,255,255,.08);
}

body.theme-icr .wa:active{
  animation: none !important;
}


/* === FORM CONTROL === */
body.theme-icr form .form-control{
  background-color: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);

  border-radius: 8px;
  padding: 0.65rem 0.75rem;

  transition: border-color .2s ease,
              box-shadow .2s ease,
              background .2s ease,
              color .2s ease;
}

/* Placeholder */
body.theme-icr form .form-control::placeholder{
  color: rgba(255,255,255,.42);
  font-style: italic;
}

/* Focus state */
body.theme-icr form .form-control:focus{
  background-color: rgba(255,255,255,.08);
  border-color: rgba(212,175,55,.35);
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
  color: #ffffff;
  outline: none;
}

/* Disabled */
body.theme-icr form .form-control:disabled{
  background-color: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.35);
}

/* Search box */
body.theme-icr .search-box{
  box-shadow: 0 0 0 2px rgba(255,255,255,.06);
  margin-bottom: 18px !important;
}


/* Table */
/* ===== Search table / list ===== */

/* Header */
body.theme-icr .table-header{
  color: var(--icr-gold);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  font-weight: 600;
  letter-spacing: .3px;
}

body.theme-icr .table-head-row{
  background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: .65rem .75rem;
  margin-bottom: .75rem;

  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--icr-gold);
  border-radius: .6rem;
}

/* Row */
body.theme-icr .canine-row{
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(4px);

  padding: .75rem .85rem;
  margin-bottom: .65rem;
  min-height: 110px;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: .7rem;

  box-shadow: 0 8px 18px rgba(0,0,0,.28);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

body.theme-icr .canine-row:nth-child(even){
  background: rgba(255,255,255,.03);
}

body.theme-icr .canine-row:hover{
  background: rgba(10,10,10,.62);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 10px 22px rgba(0,0,0,.34);
}

body.theme-icr .canine-row > [class*="col-"]{
  display: flex;
  align-items: center;
}

body.theme-icr .canine-stack{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-align: center;
}

/* Text hierarchy */
body.theme-icr .canine-name{
  font-weight: 600;
  color: #ffffff;
}

body.theme-icr .canine-kennel{
  color: rgba(255,255,255,.78);
}

body.theme-icr .date{
  color: rgba(255,255,255,.64);
}

body.theme-icr .status{
  color: rgba(255,255,255,.72);
}

body.theme-icr .desc{
  font-size: .9rem;
  line-height: 1.35;
  color: #d4af37;
}

body.theme-icr .canine-stack .canine-name{
    margin-top: 0 !important;
    line-height: 1.25;
    word-break: break-word;
}

/* Thumbnail */
body.theme-icr .canine-thumb{
  max-width: 110px;
  width: 100%;
  height: auto;
  border-radius: .5rem;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);

  box-shadow: 0 6px 14px rgba(0,0,0,.32);

  cursor: zoom-in;
}

/* Action buttons - desktop */
body.theme-icr .action-col{
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  height: 100%;
}

body.theme-icr .action-buttons{
  display: grid;
  grid-template-columns: repeat(2, 36px);
  grid-auto-rows: 36px;
  column-gap: 8px;
  row-gap: 10px;
  justify-content: end;
  align-content: center;
}

body.theme-icr .action-btn{
  width: 36px;
  height: 36px;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: .6rem;
}

/* ===== Mobile ===== */
@media (max-width: 767.98px){

  /* hide desktop-style header */
  body.theme-icr .table-head-row{
    display: none;
  }

  body.theme-icr .canine-row{
    padding: .75rem .65rem;
    min-height: auto;
    margin-bottom: .75rem;
    border-radius: .7rem;
  }

  body.theme-icr .canine-row > [class*="col-"]{
    display: block;
    align-items: initial;
  }

  body.theme-icr .canine-thumb{
    max-width: 72px;
  }

  body.theme-icr .canine-name{
    font-size: 1rem;
    font-weight: 600;
    margin-top: .35rem;
  }

  body.theme-icr .canine-kennel{
    font-size: .9rem;
    margin-top: .25rem;
  }

  body.theme-icr .action-col{
    display: block !important;
    height: auto;
    margin-top: .75rem;
  }

  body.theme-icr .action-buttons{
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
  }
}


body.theme-icr .action-btn{
  width: 36px;
  height: 36px;
  padding: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 !important;          /* ✅ hilangkan margin */
  line-height: 1 !important;     /* ✅ hindari efek font */
  border-radius: .6rem;
}


/* ===== ICR MODAL THEME ===== */
body.theme-icr .modal-backdrop.show{
  opacity: .7;
  background-color: #000;
}

body.theme-icr .modal-content{
  background: #0d0d0d !important;
  color: #ffffff !important;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: .8rem;

  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}

body.theme-icr .modal-header{
  border-bottom: 1px solid rgba(255,255,255,.08);
}

body.theme-icr .modal-title{
  color: var(--icr-gold);
}

body.theme-icr .modal-footer{
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Close button */
body.theme-icr .modal-header .btn-close{
  filter: invert(1);
  opacity: .6;
  transition: opacity .15s ease, transform .15s ease;
}

body.theme-icr .modal-header .btn-close:hover{
  opacity: 1;
  transform: scale(1.05);
}

/* Body text */
body.theme-icr .modal-body{
  color: rgba(255,255,255,.88);
}

/* Error */
body.theme-icr #error-modal .modal-body{
  color: #ff6b6b !important;
  background: rgba(255, 80, 80, .08);
  border: 1px solid rgba(255, 80, 80, .25);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 0 0 .12rem rgba(255, 80, 80, .15);
}

/* Success */
body.theme-icr #message-modal .modal-body{
  color: #52b788 !important;
  background: rgba(82, 183, 136, .08);
  border: 1px solid rgba(82, 183, 136, .25);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 0 0 .12rem rgba(82, 183, 136, .15);
}

/* Bootstrap modal harus lebih tinggi */
body.theme-icr .modal-backdrop {
  z-index: 1040 !important;
}

body.theme-icr .modal {
  z-index: 1050 !important;
}

body.theme-icr .modal-dialog {
  z-index: 1060 !important;
}


.icr-status-stack{
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
}

.icr-status-badge{
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
}

.icr-status-accepted{
    color: #d7ffe5;
    background: rgba(35, 161, 91, .22);
    border: 1px solid rgba(35, 161, 91, .35);
}

.icr-status-rejected{
    color: #ffd6d6;
    background: rgba(220, 53, 69, .20);
    border: 1px solid rgba(220, 53, 69, .34);
}

.icr-status-process{
    color: #fff2c7;
    background: rgba(212,175,55,.18);
    border: 1px solid rgba(212,175,55,.30);
}

.icr-status-complete{
    color: #d8ecff;
    background: rgba(47, 128, 237, .20);
    border: 1px solid rgba(47, 128, 237, .38);
}

.icr-status-sale {
    background: rgba(34, 197, 94, .14);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .35);
}

.icr-status-sold {
    background: rgba(239, 68, 68, .14);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .35);
}

.icr-reason{
    margin-top: 0;
    color: rgba(255,255,255,.62);
    font-size: .84rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px){
    .icr-status-stack{
        align-items: flex-start;
    }
}


/* Fix Navbar Layout (Flex Center Proper) */
body.theme-icr .navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.theme-icr .nav-center{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}


.action-btn{
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: .6rem;
  font-size: 14px;

  transition: all .15s ease;
  border: 1px solid transparent;
}

/* contoh: edit / view utama */
.action-btn.primary{
  background: linear-gradient(
    180deg,
    rgba(212,175,55,1),
    rgba(184,148,34,1)
  );
  border: 1px solid rgba(212,175,55,.9);
  color: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
}

.action-btn.primary:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 0 .14rem rgba(255,255,255,.10),
    0 6px 14px rgba(0,0,0,.28);
}

/* contoh: upload, detail, dll */
.action-btn.secondary{
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}

.action-btn.secondary:hover{
  background: rgba(0,0,0,.82);
  border-color: rgba(255,255,255,.28);
}

/* contoh: list view, misc */
.action-btn.tertiary{
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}

.action-btn.tertiary:hover{
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.25);
  color: var(--icr-gold);
}

/* hapus / reset */
.action-btn.danger{
  background: rgba(255,90,90,.10);
  border: 1px solid rgba(255,90,90,.35);
  color: #ff7b7b;
}

.action-btn.danger:hover{
  background: rgba(255,90,90,.85);
  border-color: rgba(255,90,90,.9);
  color: #fff;
}

.action-group{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.action-divider{
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.18);
  margin: 0 6px;
}

/* My Cat Registry shared brand accents: header and footer only.
   RC02 2026-10-24. Original full wordmark PNG is server media, never in Bitbucket. */
body.theme-icr .mcr-header-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
  padding: 0;
  text-decoration: none;
  line-height: 1;
}
body.theme-icr .mcr-header-wordmark {
  display: block;
  width: clamp(195px, 20vw, 255px);
  height: auto;
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
}
body.theme-icr .mcr-brand-emblem {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-right: 0 !important;
}
body.theme-icr .mcr-brand-fallback,
body.theme-icr .mcr-footer-brand-fallback {
  font: 700 clamp(.96rem, 1.3vw, 1.25rem)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: .035em;
  color: #e7c663;
  white-space: nowrap;
}
html[data-icr-theme="light"] body.theme-icr .mcr-brand-fallback { color: #805b13; }
body.theme-icr .mcr-header-brand:focus-visible,
body.theme-icr .mcr-footer-brand:focus-visible {
  outline: 3px solid #e7c663;
  outline-offset: 5px;
  border-radius: 4px;
}
/* The premium brand footer is deliberately dark in both light/dark page modes.
   Explicit high-specificity rules override legacy global light-footer selectors. */
body.theme-icr footer.mcr-footer,
html[data-icr-theme="light"] body.theme-icr footer.mcr-footer {
  position: relative;
  margin: 0 !important;
  padding: 64px 0 0;
  background: linear-gradient(150deg, #171511 0%, #0c0c0d 56%, #080809 100%) !important;
  color: #e5e0d4 !important;
  border: 0 !important;
  border-top: 1px solid rgba(216, 171, 63, .46) !important;
  box-shadow: inset 0 1px 0 rgba(252, 221, 126, .12);
  text-align: left;
}
body.theme-icr footer.mcr-footer .mcr-footer-inner {
  width: min(100% - 36px, 1220px);
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
}
body.theme-icr footer.mcr-footer .mcr-footer-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(155px, 1fr));
  gap: clamp(24px, 3vw, 52px);
  padding-bottom: 52px;
}
body.theme-icr footer.mcr-footer .mcr-footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  text-decoration: none;
  background: transparent !important;
}
body.theme-icr footer.mcr-footer .mcr-footer-wordmark {
  display: block;
  max-width: min(250px, 100%);
  width: 230px;
  height: auto;
  object-fit: contain;
}
body.theme-icr footer.mcr-footer .mcr-footer-emblem {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
body.theme-icr footer.mcr-footer .mcr-footer-brand-fallback {
  font-size: 1.03rem;
}
body.theme-icr footer.mcr-footer .mcr-footer-description,
html[data-icr-theme="light"] body.theme-icr footer.mcr-footer .mcr-footer-description,
body.theme-icr footer.mcr-footer .mcr-footer-social-note,
html[data-icr-theme="light"] body.theme-icr footer.mcr-footer .mcr-footer-social-note {
  color: #bab4a7 !important;
  font-size: .94rem;
  line-height: 1.85;
  margin: 14px 0 0;
  max-width: 34ch;
}
body.theme-icr footer.mcr-footer .mcr-footer-heading,
html[data-icr-theme="light"] body.theme-icr footer.mcr-footer .mcr-footer-heading {
  color: #e4c16b !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 7px 0 22px;
}
body.theme-icr footer.mcr-footer .mcr-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.theme-icr footer.mcr-footer a,
html[data-icr-theme="light"] body.theme-icr footer.mcr-footer a {
  color: #ded8cc !important;
  text-decoration: none;
}
body.theme-icr footer.mcr-footer .mcr-footer-nav a:hover,
body.theme-icr footer.mcr-footer .mcr-footer-contact a:hover {
  color: #f1d581 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent !important;
}
body.theme-icr footer.mcr-footer .mcr-footer-nav a:focus-visible,
body.theme-icr footer.mcr-footer .mcr-footer-contact a:focus-visible {
  outline: 2px solid #f1d581;
  outline-offset: 4px;
}
body.theme-icr footer.mcr-footer .mcr-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #d6d0c5 !important;
  font-style: normal;
  font-size: .93rem;
  line-height: 1.7;
}
body.theme-icr footer.mcr-footer .mcr-footer-contact > span,
body.theme-icr footer.mcr-footer .mcr-footer-contact > a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
body.theme-icr footer.mcr-footer .mcr-footer-contact i {
  color: #d5ad53;
  margin-top: 5px;
  min-width: 16px;
}
body.theme-icr footer.mcr-footer .mcr-footer-bottom {
  border-top: 1px solid rgba(214, 177, 94, .22);
  min-height: 80px;
  padding: 23px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  align-items: center;
  color: #a69f92 !important;
  font-size: .79rem;
  line-height: 1.6;
}
body.theme-icr footer.mcr-footer .mcr-footer-bottom-claim {
  color: #d7b862 !important;
}
@media (max-width: 991.98px) {
  body.theme-icr footer.mcr-footer .mcr-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 40px;
  }
}
@media (max-width: 575.98px) {
  body.theme-icr .mcr-header-wordmark {
    width: clamp(145px, 42vw, 190px);
    max-height: 66px;
  }
  body.theme-icr .mcr-brand-emblem {
    width: 34px;
    height: 34px;
  }
  body.theme-icr .mcr-brand-fallback {
    font-size: .82rem;
    letter-spacing: .01em;
  }
  body.theme-icr .mcr-header-brand { gap: 6px; }
  body.theme-icr footer.mcr-footer { padding-top: 46px; }
  body.theme-icr footer.mcr-footer .mcr-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
  }
  body.theme-icr footer.mcr-footer .mcr-footer-heading { margin-bottom: 15px; }
  body.theme-icr footer.mcr-footer .mcr-footer-bottom {
    padding: 23px 0 27px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
