/*
Theme Name: Circle Trade Internal Theme
Theme URI: https://tninnovation.local
Author: TN Innovation
Description: Advanced internal theme for Circle Trade Fleet Control. Uses Gold, White and Deep Grey branding.
Version: 2.3.0
Text Domain: circle-trade-theme
*/
:root{
  --gold:#d99a00;--gold2:#f0b326;--grey:#25282c;--dark:#15171b;--white:#fff;--muted:#6d7178;--line:#e8e2d3;--bg:#f4f5f7;
}
*{box-sizing:border-box}
html{min-height:100%;height:100%;font-size:15px;scroll-behavior:smooth}
html.wp-toolbar{padding-top:0!important}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--grey);font-size:12px;font-weight:200;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
#wpadminbar{display:none!important}
a{color:var(--gold)}
.ct-theme-header{background:linear-gradient(135deg,var(--grey),var(--dark));border-bottom:3px solid var(--gold);box-shadow:0 10px 24px rgba(0,0,0,.12);color:#fff;position:sticky;top:0;z-index:50;flex:0 0 auto}
.ct-theme-inner{max-width:1360px;margin:0 auto;padding:12px 20px}
.ct-theme-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff;min-width:260px}
.ct-theme-brand img{width:56px;height:56px;object-fit:contain;border-radius:50%;background:#fff;padding:3px;box-shadow:0 0 0 2px rgba(217,154,0,.25)}
.ct-theme-brand strong{display:block;font-size:18px;line-height:1.15;letter-spacing:.01em;color:#fff;font-weight:500}
.ct-theme-brand span{display:block;font-size:12px;color:#e6e6e6;font-weight:200}
.ct-theme-main{width:100%;max-width:1360px;margin:0 auto;padding:20px;min-height:calc(100vh - 126px);flex:1 0 auto}
.ct-theme-content{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;min-height:calc(100vh - 176px);box-shadow:0 12px 28px rgba(0,0,0,.045)}
.ct-theme-content h1{font-size:24px;line-height:1.2;margin:0 0 16px;font-weight:400;color:var(--grey)}
.ct-theme-content h2{font-size:20px;line-height:1.25;font-weight:400}
.ct-theme-content h3{font-size:17px;line-height:1.3;font-weight:350}
.ct-theme-footer{background:var(--grey);color:#fff;margin-top:auto;flex:0 0 auto;font-size:13px}
.ct-theme-footer .ct-theme-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center}
.ct-theme-footer strong{color:var(--gold2);font-weight:400}.ct-theme-footer a{color:#fff;text-decoration:none}
.button,.wp-block-button__link{background:linear-gradient(135deg,var(--gold),#be8500);color:#fff;border-radius:10px;padding:10px 15px;text-decoration:none;border:0;font-weight:400}
.ct-theme-toplinks{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ct-theme-toplinks a{text-decoration:none;padding:8px 12px;border-radius:11px;color:#fff;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);font-weight:400;font-size:13px;line-height:1.2}
.ct-theme-toplinks a:hover{background:rgba(217,154,0,.22)}.ct-theme-toplinks a.scan{background:var(--gold);color:#fff;border-color:var(--gold)}.ct-theme-toplinks a.dashboard{background:#fff;color:var(--grey)}
@media(max-width:760px){.ct-theme-header{position:static}.ct-theme-inner{padding:10px 12px}.ct-theme-brand strong{font-size:16px}.ct-theme-brand img{width:48px;height:48px}.ct-theme-toplinks{width:100%;margin-left:0}.ct-theme-toplinks a{flex:1;text-align:center;justify-content:center}.ct-theme-footer .ct-theme-inner{display:block}.ct-theme-content{padding:14px;min-height:calc(100vh - 190px)}.ct-theme-main{padding:14px 10px;min-height:calc(100vh - 150px)}}


/* v1.3 standalone app feel */
body{background:linear-gradient(180deg,#f7f7f4,#eceff3);min-height:100vh;overflow-x:hidden}
.ct-theme-header{background:transparent;border-bottom:0;box-shadow:none;padding:12px 12px 0;position:sticky;top:0;z-index:80}
.ct-theme-header .ct-theme-inner{max-width:none;background:linear-gradient(135deg,var(--grey),var(--dark));border:1px solid rgba(217,154,0,.35);border-left:6px solid var(--gold);border-radius:22px;box-shadow:0 18px 42px rgba(15,17,20,.16);padding:12px 16px}
.ct-theme-main{max-width:none;width:100%;min-height:calc(100vh - 106px);padding:12px}
.ct-theme-content{min-height:calc(100vh - 130px);border-radius:22px;box-shadow:0 14px 36px rgba(17,19,23,.07);background:rgba(255,255,255,.96)}
.ct-theme-footer{display:none}
.ct-theme-toplinks{overflow-x:auto;white-space:nowrap;scrollbar-width:none}.ct-theme-toplinks::-webkit-scrollbar{display:none}
@media(max-width:760px){.ct-theme-header{padding:8px 8px 0}.ct-theme-header .ct-theme-inner{border-radius:18px}.ct-theme-main{padding:8px;min-height:calc(100vh - 92px)}.ct-theme-content{border-radius:18px;min-height:calc(100vh - 110px)}.ct-theme-brand{min-width:0}.ct-theme-toplinks{flex-wrap:nowrap;width:100%;margin-left:0}.ct-theme-toplinks a{flex:0 0 auto}}

/* v1.4: let CTFC plugin render app pages without theme double-header/wrapper */
body.ctfc-plugin-app-page{background:linear-gradient(180deg,#f6f6f2,#eceff3);min-height:100vh}
body.ctfc-plugin-app-page .ct-theme-header,body.ctfc-plugin-app-page .ct-theme-footer{display:none!important}
body.ctfc-plugin-app-page .ct-theme-main, .ct-theme-main.ctfc-main-no-theme{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;min-height:100vh!important}

/* v1.5 — Modern standalone theme shell */
:root{--gold:#d99a00;--gold2:#f3bd3b;--grey:#151a21;--dark:#0d1015;--white:#fff;--muted:#747c89;--line:rgba(20,24,31,.10);--bg:#eef1f5}
html,body{min-height:100%;background:#eef1f5!important}
body.ct-system{
  background:
    radial-gradient(circle at 12% 0%, rgba(217,154,0,.10), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(17,21,28,.10), transparent 32%),
    linear-gradient(180deg,#f7f7f4 0%,#eef1f5 50%,#e8ecf2 100%)!important;
  color:#141922!important;font-size:14px!important;letter-spacing:-.005em!important;
}
.ct-theme-header{background:transparent!important;border:0!important;box-shadow:none!important;position:sticky!important;top:0!important;z-index:80!important;padding:12px 12px 0!important}.ct-theme-header .ct-theme-inner{max-width:none!important;min-height:84px!important;background:linear-gradient(135deg,#20252d,#0e1116)!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:28px!important;box-shadow:0 20px 60px rgba(15,19,28,.14)!important;padding:14px 18px!important;overflow:hidden!important;position:relative!important}.ct-theme-header .ct-theme-inner:after{content:"";position:absolute;right:-90px;top:-130px;width:280px;height:280px;border:30px solid rgba(217,154,0,.14);border-radius:50%;pointer-events:none}.ct-theme-brand{position:relative;z-index:2;gap:13px!important}.ct-theme-brand img{width:60px!important;height:60px!important;border-radius:18px!important;padding:6px!important;box-shadow:0 12px 28px rgba(0,0,0,.18),0 0 0 1px rgba(217,154,0,.36)!important}.ct-theme-brand strong{font-size:18px!important;font-weight:560!important;letter-spacing:-.03em!important}.ct-theme-brand span span{font-size:12px!important;color:rgba(255,255,255,.74)!important}.ct-theme-toplinks{position:relative;z-index:2;gap:8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important}.ct-theme-toplinks::-webkit-scrollbar{display:none!important}.ct-theme-toplinks a{border-radius:16px!important;padding:11px 14px!important;min-height:42px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;font-weight:520!important;font-size:13px!important;box-shadow:none!important}.ct-theme-toplinks a:hover{background:rgba(217,154,0,.22)!important;transform:translateY(-1px)!important}.ct-theme-toplinks a.dashboard{background:#fff!important;color:#151a21!important}.ct-theme-toplinks a.scan{background:linear-gradient(135deg,var(--gold),#b77e00)!important;color:#fff!important;border-color:rgba(217,154,0,.75)!important}.ct-theme-main{width:100%!important;max-width:none!important;padding:12px!important;min-height:calc(100vh - 108px)!important}.ct-theme-content{border-radius:28px!important;border:1px solid rgba(255,255,255,.72)!important;background:rgba(255,255,255,.80)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;box-shadow:0 14px 38px rgba(17,21,28,.08)!important;min-height:calc(100vh - 132px)!important;padding:22px!important}.ct-theme-footer{display:none!important}body.ctfc-plugin-app-page .ct-theme-header,body.ctfc-plugin-app-page .ct-theme-footer{display:none!important}body.ctfc-plugin-app-page .ct-theme-main,.ct-theme-main.ctfc-main-no-theme{padding:0!important;min-height:100vh!important;background:transparent!important}body.ctfc-plugin-app-page .ct-theme-content{padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important}
@media(max-width:760px){.ct-theme-header{padding:8px 8px 0!important}.ct-theme-header .ct-theme-inner{border-radius:22px!important;padding:12px!important;min-height:auto!important}.ct-theme-brand{min-width:0!important}.ct-theme-brand img{width:52px!important;height:52px!important}.ct-theme-brand strong{font-size:16px!important}.ct-theme-toplinks{width:100%!important;margin-left:0!important}.ct-theme-toplinks a{flex:0 0 auto!important;font-size:12.5px!important;padding:10px 12px!important}.ct-theme-main{padding:8px!important;min-height:calc(100vh - 94px)!important}.ct-theme-content{border-radius:22px!important;min-height:calc(100vh - 112px)!important;padding:16px!important}}


/* v2.0 launch header polish */
.ct-theme-brand span small{display:block;color:rgba(255,255,255,.45);font-size:5px;font-weight:300;letter-spacing:.04em;margin-top:3px}
.ct-theme-brand span .ct-tagline{display:block;color:rgba(255,255,255,.78);font-size:12px;font-weight:300}


/* v2.1 internal-only launch cleanup */
.ct-theme-brand .ct-tagline{color:rgba(255,255,255,.78)!important;font-weight:300!important}
.ct-theme-brand span small{color:rgba(255,255,255,.35)!important}

/* v2.2 final product polish */
.ct-system .ct-theme-brand small,
.ctfc-brandbar small{font-size:10px!important;opacity:.3!important;font-weight:200!important;}
.ct-system .ct-theme-inner,
.ctfc-shell{width:100%;max-width:none;padding-left:clamp(14px,2vw,32px);padding-right:clamp(14px,2vw,32px);}
.ct-system main{flex:1;min-height:calc(100vh - 120px);}
@media(max-width:768px){
 .ct-theme-inner{padding:10px 14px;}
 .ct-theme-brand strong{font-size:16px;}
}
