/*
Theme Name: Shear Horizon Clean Square Ocean
Theme URI: https://rent.shear.beauty/
Author: Shear Beauty
Description: Clean, branded renter portal theme with ocean/sunset background and app-like dashboard styling.
Version: 4.4
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: shear-horizon-clean-square-ocean-v3_3
*/

:root{
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --text: rgba(248,250,252,.94);
  --muted: rgba(248,250,252,.72);
  --border: rgba(248,250,252,.14);
  --card: rgba(2,6,23,.42);
  --card2: rgba(2,6,23,.36);

  /* Squarer, cleaner geometry (less pill / less bubble) */
  --radius-shell: 18px;
  --radius-card: 14px;
  --radius-inner: 12px;
  --radius-btn: 12px;

  /* Ocean / Sunset default */
  --ocean-sunset:
    linear-gradient(180deg, rgba(6,11,34,.92) 0%, rgba(6,11,34,.78) 25%, rgba(8,19,48,.68) 55%, rgba(20,70,90,.60) 75%, rgba(250,158,90,.40) 100%),
    radial-gradient(1200px 600px at 50% 86%, rgba(255,140,80,.32), transparent 62%),
    radial-gradient(1000px 520px at 82% 92%, rgba(255,200,120,.20), transparent 65%),
    radial-gradient(1400px 820px at 18% 100%, rgba(40,160,190,.28), transparent 60%),
    #050816;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: var(--ocean-sunset) !important;
  background-attachment: fixed !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
}

a{color:rgba(248,250,252,.92)}
a:hover{opacity:.92}

.sb-shell{min-height:100vh;display:flex;flex-direction:column;}

.sb-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 22px;
  border-bottom: 1px solid rgba(248,250,252,.08);
  background: rgba(2,6,23,.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sb-brand{display:flex;align-items:center;gap:12px;font-weight:950;}
.sb-mark{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg, rgba(45,212,191,1), rgba(59,130,246,1));
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.sb-nav a{
  display:inline-flex;align-items:center;justify-content:center;
  height:34px;padding:0 14px;border-radius:var(--radius-btn);
  border:1px solid rgba(248,250,252,.14);
  background: rgba(248,250,252,.06);
  text-decoration:none;font-weight:900;color: rgba(248,250,252,.92);
}

.sb-main{flex:1;display:flex;justify-content:center;padding: 34px 18px 48px;}

.sb-card{
  width: min(980px, 100%);
  border-radius:var(--radius-shell);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 30px 120px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 26px;
}

.sb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.sb-title{margin:0;font-size:44px;line-height:1.05;}
.sb-sub{margin:10px 0 0;color: var(--muted);max-width: 62ch;}

.sb-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.sb-pill{
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 14px;border-radius:var(--radius-btn);
  border:1px solid rgba(248,250,252,.14);
  background: rgba(248,250,252,.06);
  color: rgba(248,250,252,.92);
  text-decoration:none;
  font-weight:950;
}
.sb-pill.primary{
  background: linear-gradient(135deg, rgba(25,195,125,.95), rgba(25,195,125,.62));
  border-color: rgba(25,195,125,.55);
  color:#04120c;
}
.sb-pill:hover{transform: translateY(-1px)}

.sb-panel{
  margin-top: 18px;
  border-radius:var(--radius-card);
  background: var(--card2);
  border: 1px solid rgba(248,250,252,.12);
  padding: 18px;
}
.sb-panel h3{margin:0;font-size:14px;color: rgba(248,250,252,.84);letter-spacing:.02em;}
.sb-welcome{margin-top:10px;color: rgba(248,250,252,.86);font-weight:900;}

.sb-login{margin-top:12px;display:grid;gap:12px;}
.sb-row{display:grid;gap:8px}
.sb-login label{font-weight:950;font-size:13px;color: rgba(248,250,252,.82);}
.sb-login input[type="text"], .sb-login input[type="password"]{
  width:100%;height:46px;padding:0 16px;border-radius:var(--radius-btn);
  border: 1px solid rgba(248,250,252,.16);
  background: rgba(248,250,252,.06);
  color: rgba(248,250,252,.96);
  outline:none;
}
.sb-login input:focus{border-color: rgba(25,195,125,.55);box-shadow:0 0 0 4px rgba(25,195,125,.14);}
.sb-login .meta{
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  color: rgba(248,250,252,.70);font-size:13px;
}
.sb-login .meta a{text-decoration: underline;text-decoration-color: rgba(248,250,252,.28);}
.sb-error{
  margin-top:10px;border-radius:var(--radius-inner);border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);padding:10px 12px;font-weight:900;
}

/* ------------------------------
   Auth (home) layout — full-page modern login
-------------------------------- */
.sb-auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:36px 18px;}
.sb-auth-full{
  background:
    radial-gradient(1200px 700px at 30% 20%, rgba(59,130,246,.24), transparent 60%),
    radial-gradient(900px 520px at 70% 40%, rgba(25,195,125,.16), transparent 65%),
    linear-gradient(180deg, rgba(2,6,23,.55), rgba(2,6,23,.70)),
    url('assets/ocean-sunset-v3_3.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.sb-auth-frame{
  width:min(1120px, 100%);
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.sb-auth-left{position:relative;min-height: 520px;padding: 18px 10px;color: rgba(248,250,252,.96);}
.sb-auth-brand{display:flex;align-items:center;gap:12px;}
.sb-auth-mark{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;font-weight:1000;
  background: rgba(248,250,252,.92); color:#0b1020; box-shadow:0 18px 60px rgba(0,0,0,.35);
}
.sb-auth-name{font-weight:1000;letter-spacing:.01em;}
.sb-auth-copy{position:absolute;left:10px;right:10px;bottom: 6px;}
.sb-auth-copy h1{margin:0 0 10px;font-size:58px;line-height:1.0;letter-spacing:-.02em;}
.sb-auth-copy p{margin:0;color: rgba(248,250,252,.86);max-width: 54ch;font-size:15px;}

.sb-auth-social{display:flex;gap:10px;margin-top:14px;}
.sb-auth-ico{width:34px;height:34px;border-radius: 999px;display:grid;place-items:center;
  background: rgba(248,250,252,.14); border:1px solid rgba(248,250,252,.18);
  color: rgba(248,250,252,.92); text-decoration:none; font-weight:1000;
  backdrop-filter: blur(10px);
}

.sb-auth-right{
  border-radius: 18px;
  padding: 26px 26px 22px;
  border: 1px solid rgba(248,250,252,.18);
  background: rgba(2,6,23,.42);
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: rgba(248,250,252,.94);
}
.sb-auth-form{max-width: 420px; margin: 0 auto;}
.sb-auth-form h2{margin:0;font-size:36px;color: rgba(248,250,252,.98);}
.sb-muted{color: rgba(248,250,252,.70); margin: 8px 0 18px;}
.sb-field{display:block;margin: 12px 0;}
.sb-field span{display:block;font-size:12px;font-weight:950;color: rgba(248,250,252,.80); margin-bottom:6px;}
.sb-field input{width:100%;height:46px;padding:0 14px;border-radius: 12px;border:1px solid rgba(248,250,252,.18);
  background: rgba(248,250,252,.10); color: rgba(248,250,252,.96); outline:none;
}
.sb-field input:focus{border-color: rgba(59,130,246,.75); box-shadow:0 0 0 4px rgba(59,130,246,.18);}
.sb-auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin: 10px 0 12px;}
.sb-check{display:flex;align-items:center;gap:8px;font-size:13px;color: rgba(248,250,252,.78);}
.sb-link{color: rgba(248,250,252,.92); text-decoration: underline; text-decoration-color: rgba(248,250,252,.22); font-weight:900;}
.sb-auth-submit{width:100%;height:46px;border:0;border-radius: 12px; font-weight:1000;
  background: rgba(248,250,252,.92); color: rgba(2,6,23,.92); cursor:pointer;
}

@media (max-width: 960px){
  .sb-auth-frame{grid-template-columns:1fr;gap:16px;}
  .sb-auth-left{min-height: 260px;}
  .sb-auth-copy{position:relative;left:auto;right:auto;bottom:auto;margin-top:18px;}
  .sb-auth-copy h1{font-size:44px;}
}

/* ------------------------------
   App layout — fixed left sidebar
-------------------------------- */
.sb-app{
  min-height:100vh;
  display:block;
  padding:0;
}
.sb-app-shell{
  width:100%;
  max-width:none;
  min-height:100vh;
}
.sb-side{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:280px;
  z-index:20;
  padding:18px 14px;
  border-radius:0;
  background: rgba(2,6,23,.50);
  border-right: 1px solid rgba(248,250,252,.10);
  box-shadow: 0 24px 90px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow:auto;
}
.sb-side-top{display:flex;align-items:center;gap:12px;margin-bottom: 14px;}
.sb-side-mark{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;font-weight:1000;
  background: linear-gradient(135deg, rgba(45,212,191,1), rgba(59,130,246,1));
}
.sb-side-name{font-weight:1000;}
.sb-side-sub{color: rgba(248,250,252,.70); font-size: 12px; font-weight:900;}
.sb-nav{display:flex;flex-direction:column;gap:8px;}
.sb-nav-item{display:flex;align-items:center;height:42px;padding:0 12px;border-radius: 12px;
  text-decoration:none; font-weight:950; color: rgba(248,250,252,.90);
  border:1px solid rgba(248,250,252,.10); background: rgba(248,250,252,.04);
}
.sb-nav-item.is-active{background: rgba(45,212,191,.18); border-color: rgba(45,212,191,.35);}
.sb-side-actions{display:grid;gap:10px;margin-top: 16px;}
.sb-side-btn{display:flex;align-items:center;justify-content:center;height:42px;border-radius: 12px;
  border:1px solid rgba(248,250,252,.14); background: rgba(248,250,252,.06);
  color: rgba(248,250,252,.92); font-weight:950; text-decoration:none;
}
.sb-content{
  margin-left:280px;
  min-height:100vh;
  padding:26px 22px 46px;
  border-radius:0;
  background: rgba(2,6,23,.28);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Make the plugin dashboard fill the right panel nicely */
.sb-content .sbcr-card.sbcr-renter{max-width: none !important; margin: 0 !important;}

@media (max-width: 980px){
  .sb-app-shell{grid-template-columns:1fr;}
  .sb-side{position:relative;top:auto;}
}

/* Plugin dashboard: app-like */
.sbcr-card.sbcr-renter{
  max-width: 1180px !important;
  margin: 16px auto 0 !important;
  background: rgba(2,6,23,.40) !important;
  border: 1px solid rgba(248,250,252,.14) !important;
  border-radius:var(--radius-card) !important;
  box-shadow: 0 24px 90px rgba(0,0,0,.45) !important;
  padding: 20px !important;
}
.sbcr-card.sbcr-renter .sbcr-actions{gap:10px !important;margin-top:10px !important;}
.sbcr-card.sbcr-renter .sbcr-btn{height:46px !important;padding:0 18px !important;font-weight:950 !important;}
.sbcr-card.sbcr-renter .sbcr-btn.sbcr-btn-primary{
  background: linear-gradient(135deg, rgba(25,195,125,.95), rgba(25,195,125,.62)) !important;
  color:#04120c !important;
  border-color: rgba(25,195,125,.55) !important;
}
.sbcr-card.sbcr-renter .sbcr-btn:not(.sbcr-btn-primary){
  background: rgba(248,250,252,.06) !important;
  border: 1px solid rgba(248,250,252,.16) !important;
  color: rgba(248,250,252,.92) !important;
}
.sbcr-card.sbcr-renter .sbcr-metrics{gap:12px !important;margin-top:14px !important;}
.sbcr-card.sbcr-renter .sbcr-metric{
  background: rgba(248,250,252,.04) !important;
  border: 1px solid rgba(248,250,252,.10) !important;
  border-radius:var(--radius-inner) !important;
  padding: 14px !important;
}
.sbcr-card.sbcr-renter .sbcr-tablewrap{
  background: rgba(248,250,252,.03) !important;
  border: 1px solid rgba(248,250,252,.10) !important;
  border-radius:var(--radius-inner) !important;
  padding: 12px !important;
}
.sbcr-card.sbcr-renter .sbcr-table{border-collapse:separate !important;border-spacing:0 10px !important;}
.sbcr-card.sbcr-renter .sbcr-table thead{display:none !important;}
.sbcr-card.sbcr-renter .sbcr-table tbody tr{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
  padding:14px;
  border-radius:var(--radius-inner);
  background: rgba(248,250,252,.04) !important;
  border: 1px solid rgba(248,250,252,.10) !important;
}

/* ------------------------------
   Mobile nav: off-canvas drawer
-------------------------------- */
.sb-mobilebar{display:none;}
.sb-overlay{display:none;}
.sb-mobilebrand{display:flex;flex-direction:column;line-height:1.05;}
.sb-mobilename{font-weight:1000;}
.sb-mobilesub{font-size:12px;font-weight:900;color:rgba(248,250,252,.70);}

@media (max-width: 980px){
  /* Remove desktop left offset */
  .sb-content{margin-left:0 !important; padding-top: 82px;}

  /* Fixed top bar */
  .sb-mobilebar{
    display:flex;
    align-items:center;
    gap:12px;
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:64px;
    padding:0 14px;
    z-index:18;
    background: rgba(2,6,23,.72);
    border-bottom: 1px solid rgba(248,250,252,.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .sb-burger{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:14px;
    border: 1px solid rgba(248,250,252,.14);
    background: rgba(248,250,252,.06);
    color: rgba(248,250,252,.92);
    font-weight:1000;
    font-size:20px;
    cursor:pointer;
  }

  /* Off-canvas sidebar */
  .sb-side{
    position:fixed !important;
    top:0;
    left:0;
    bottom:0;
    width: 280px;
    max-width: calc(100vw - 64px);
    transform: translateX(-110%);
    transition: transform .22s ease;
    z-index:20;
  }

  .sb-overlay{
    display:none;
    position:fixed;
    inset:0;
    background: rgba(0,0,0,.45);
    z-index:19;
  }

  body.sb-nav-open .sb-side{transform: translateX(0);}
  body.sb-nav-open .sb-overlay{display:block;}

  /* Lock background scroll when open */
  html.sb-lock, html.sb-lock body{overflow:hidden;}
}
.sbcr-card.sbcr-renter .sbcr-table tbody td{
  padding:0 !important;border:0 !important;
  display:flex;flex-direction:column;gap:6px;min-height:44px;
  color: rgba(248,250,252,.90) !important;
}
.sbcr-card.sbcr-renter .sbcr-table tbody td:before{
  font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  color: rgba(248,250,252,.65);
}
.sbcr-card.sbcr-renter .sbcr-table tbody td:nth-child(1):before{content:'Date';}
.sbcr-card.sbcr-renter .sbcr-table tbody td:nth-child(2):before{content:'Type';}
.sbcr-card.sbcr-renter .sbcr-table tbody td:nth-child(3):before{content:'Amount';}
.sbcr-card.sbcr-renter .sbcr-table tbody td:nth-child(4):before{content:'Receipt';}
.sbcr-card.sbcr-renter .sbcr-table tbody td a{
  display:inline-flex;align-items:center;justify-content:center;
  height:36px;padding:0 14px;border-radius:var(--radius-btn);
  border:1px solid rgba(248,250,252,.16);
  background: rgba(248,250,252,.06);
  color: rgba(248,250,252,.92);
  font-weight:950;text-decoration:none;
}
@media (max-width:820px){
  .sbcr-card.sbcr-renter .sbcr-table tbody tr{grid-template-columns:1fr 1fr;}
}
@media (max-width:520px){
  .sb-title{font-size:34px}
  .sbcr-card.sbcr-renter .sbcr-table tbody tr{grid-template-columns:1fr;}
}

.sb-footer{
  padding:20px 18px;
  border-top: 1px solid rgba(248,250,252,.08);
  background: rgba(2,6,23,.24);
  text-align:center;
  color: rgba(248,250,252,.72);
  font-size:13px;
}


/* ─────────────────────────────────────────────────────────────
   Shear Chair Rent (Rebuilt v3) — Square-like UI overrides
   (Theme-driven polish without editing the plugin)
   ───────────────────────────────────────────────────────────── */
.sbcr3-card{border-radius:var(--radius-card)!important;background:rgba(2,6,23,.50)!important}
.sbcr3-btn{border-radius:var(--radius-btn)!important;padding:11px 14px!important;font-weight:800!important}
.sbcr3-details{border-radius:var(--radius-inner)!important}
.sbcr3-pill{border-radius:10px!important;padding:6px 10px!important}
.sbcr3-shell{padding:34px 16px!important}

/* === v3.1 FORCE BACKGROUND + SQUARE STYLE OVERRIDES === */
:root{ --shr-bg-img: url("assets/ocean-sunset-v3_3.png?v=3.3"); }
html, body{ min-height:100%; }
body{
  background-image: linear-gradient(180deg, rgba(7,12,24,.70) 0%, rgba(7,12,24,.55) 40%, rgba(7,12,24,.75) 100%), var(--shr-bg-img) !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-attachment: fixed !important;
}
/* Make everything a bit more square & app-like */
.shear-portal, .shear-portal *{
  border-radius: 14px !important;
}
.shear-portal .card, .shear-portal .panel, .shear-portal .tile{
  border-radius: 16px !important;
  background: rgba(10,16,32,.72) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* === v3.1 cache-bust + ocean background === */
html, body {
  height: 100%;
}
body {
  background-image:
    linear-gradient(180deg, rgba(3,7,18,0.70) 0%, rgba(3,7,18,0.88) 55%, rgba(3,7,18,0.96) 100%),
    url("assets/ocean-sunset-v3_3.png?v=3.3");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Make everything a bit more square + modern */
:root {
  --radius: 14px;
}
*, .site, .content, .card, .panel, .btn, input, select, textarea {
  border-radius: var(--radius) !important;
}

/* Slightly crisper borders */
.card, .panel {
  border: 1px solid rgba(255,255,255,0.10) !important;
}


/* Portal tabs */
.sb-tabs{display:flex;gap:10px;margin:14px 0 6px 0;padding:6px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:14px}
.sb-tab{flex:1;text-align:center;padding:10px 12px;border-radius:12px;text-decoration:none;color:rgba(255,255,255,.85);font-weight:900}
.sb-tab:hover{background:rgba(255,255,255,.06)}
.sb-tab.is-active{background:#fff;color:#0b1220}


html,body{height:100%;}
body{margin:0;}


@media (max-width: 860px){
  .sb-side{
    position:sticky;
    width:auto;
    height:auto;
    top:0;
    bottom:auto;
    border-right:0;
    border-bottom: 1px solid rgba(248,250,252,.10);
  }
  .sb-content{
    margin-left:0;
    padding:18px 14px 34px;
  }
}
