@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cascadia+Mono:ital,wght@0,200..700;1,200..700&family=Sofia+Sans+Condensed:wght@1..1000&display=swap');


:root {

    --font1: 'Manrope', sans-serif;
    --font2: 'Geologica', sans-serif;
    --font3: 'Cascadia Mono', monospace;

    /* Medical blue palette */
    --col-900: #0f2d5a;
    --col-800: #1b3f6d;
    --col-700: #27517f;
    --col-600: hsl(214, 52%, 42%);
    --col-500: #5685c2;
    --col-400: #7299cb;
    --col-300: #8fafd4;
	--col-250: #aabddc;
    --col-200: #aabddc;
	--col-150: #c6cfe4;
    --col-100: #dfe3ef;
    --col-50:  #f5f7fc;

    /* Neutrals */
    --n-900: #1a1d21;
    --n-800: #2d3239;
    --n-700: #3f4650;
    --n-600: #5a6370;
    --n-500: #7a8494;
    --n-400: #9aa3b0;
    --n-300: #c0c6cf;
    --n-200: #e0e3e8;
    --n-100: #f0f2f5;
    --n-50:  #f8f9fb;

    /* Accent */
    --accent: hsl(214, 62%, 47%);
    --accent-hover: hsl(214, 62%, 37%);
    --accent-light: hsla(214, 62%, 47%, 0.10);

    /* Semantic */
    --white: #ffffff;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;


    --green1: #47c1b7;
    --green2: #7dcfc8;
    --green3: #a7dad5;
    --green4: #209e94;
    --green5: #c9eeeb;
    --server1: #d4449c;
    --server2: #a22772;

	--red: hsl(0, 45%, 60%);
}

/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--col-300);
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--col-400);
}
body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
}
body::-webkit-scrollbar-thumb {
    background: var(--col-300);
    border-radius: 20px;
}






/*  MARK: Main
*/
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body, body * { box-sizing: border-box; }
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: var(--font1);
    background: linear-gradient(145deg, var(--col-50) 0%, #f0faf5 30%, var(--n-100) 60%, var(--col-100) 100%);
    background-attachment: fixed;
    color: var(--n-700);
    min-height: 100vh;
}
p { font-size: 15px; line-height: 1.6; color: var(--n-600); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font2); color: var(--n-900); }
code { font-family: var(--font4); }





/*  MARK: Common
*/
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
  }
.A-flex,
.fp-flex { display: flex; }
.A-flex-wrap { display: flex; flex-flow: row wrap; align-items: start; }
.fp-hidden { display: none !important; }
.A-col-2 { width: 50% !important; } 
.flex-0 { flex: 0 !important; }
.flex-1 { flex: 1 !important; }
.abs {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.space-32 { width: 100%; height: 32px; }
.space-64 { width: 100%; height: 64px; }
svg {
    width: 32px;
    height: 32px;
    fill: var(--cc0);
}
.svg-stroke {
    fill: transparent;
    stroke: var(--cc0);
}

.apexcharts-svg {
    width: unset;
    height: unset;
    fill: unset;
}

.half { width: calc(50% - 0px); }
.half1 { width: calc(50% - 8px); margin-right: 8px; }
.half2 { width: calc(50% - 8px); margin-left: 8px; }


.close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.3;
    transition: 0.2s all;
}
.close:hover {
    opacity: 1;
    transform: scale(0.8) rotate(90deg);
}




img { position: relative; }
img:after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: hsl(0, 0%, 75%);
}



.svg-fill-stroke { fill: var(--cc0); stroke: var(--cc0); }
.svg-fill { fill: var(--cc0); }
.svg-stroke { stroke: var(--cc0); }



button {
	padding: 6px 12px;
	font-size: 13px;
    font-family: var(--font1);
    font-weight: 500;
	color: var(--n-700);
	background: var(--white);
	border: 1px solid var(--n-200);
    border-radius: var(--radius-sm);
	cursor: pointer;
    transition: all 0.2s ease;
}
button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}
button:disabled {
    background: var(--n-100);
    border-color: var(--n-200);
    color: var(--n-400);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 11px;
    font-family: var(--font1);
    font-weight: 600;
    letter-spacing: 0.3px;
    background: var(--white);
    color: var(--n-600);
    border: 1px solid var(--n-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-sm:hover {
    background: var(--n-50);
    border-color: var(--n-300);
    color: var(--n-800);
}
.btn-refresh:hover {
    color: var(--col-700);
    border-color: var(--col-300);
}


.add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font1);
    color: var(--white);
    background: var(--col-300);
    border-radius: 60px;
    margin-left: -8px;
    vertical-align: middle;
    cursor: pointer;
}
.add-button:hover {
    background: var(--col-500);
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.3);
}
.add-button svg {
    width: 20px;
    height: 20px;
    stroke: white;
}
.add-button svg line { stroke-width: 5; }



.error {
    width: 100%;
    margin: 16px 0;
    background: hsl(0, 85%, 60%);
    color: white;
    padding: 12px 16px;
    font-size: 15px;
    text-align: right;
    line-height: 1.2;
    border-radius: var(--radius-sm);
}




textarea,
select,
input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--n-800);
    background-color: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--radius-sm);
    font-family: var(--font1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea:focus,
select:focus,
input:focus {
    border-color: var(--col-400);
    box-shadow: 0 0 0 3px var(--accent-light);
    outline: none;
}
select { width: auto; cursor: pointer; }
textarea { min-height: 96px; }


.context-menu {
    position: absolute;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 12px hsla(0, 0%, 0%, 0.4);
    z-index: 900;
}
.context-menu-item {
    padding: 4px 8px;
    cursor: pointer;
}
.context-menu-item:hover {
    background: #444;
    color: white;
}
    
.flex-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.flex-grid-8 {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.flex-grid-4 {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.flex-grid-center { align-items: center; }












/*  MARK: App
*/
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#app {
	display: flex;
	flex-flow: column;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 28px;
}

/* MARK: Nav
*/
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.nav-link {
    padding: 7px 16px;
    font-size: 13px;
    font-family: var(--font1);
    font-weight: 500;
    color: var(--n-600);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.18s ease;
    white-space: nowrap;
}
.nav-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}
.nav-logout {
    margin-left: auto;
    color: var(--red);
}
.nav-logout:hover {
    background: hsla(0, 45%, 60%, 0.1);
    color: var(--red);
}
.nav-admin {
    color: var(--col-700);
}
.nav-admin:hover {
    color: var(--accent);
    background: var(--accent-light);
}
.nav-active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}


.top-header {
    text-align: center;
    margin-bottom: 16px;
    padding: 0px 32px 40px;
    background: linear-gradient(-135deg, var(--col-600) 0%, var(--col-400) 50%, var(--col-200) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.top-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.top-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.top-header h1 {
	margin: 24px 0 8px;
    font-family: var(--font2);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}
.header-badge {
    font-size: 72px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    position: relative;
    z-index: 1;
}
.header-subtitle {
    font-size: 14px !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 300;
    margin: 0 0 24px 0;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}
.selectors-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
#website-url {
    flex: 1;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.25);
    border-right: none;
    border-radius: 0;
    outline: none;
    transition: all 0.25s ease;
    font-family: var(--font3);
    background: rgba(255,255,255,0.95);
    color: var(--n-800);
    backdrop-filter: blur(8px);
}
#website-url::placeholder {
    color: var(--n-400);
    font-weight: 300;
}
#website-url:focus {
    border-color: rgba(255,255,255,0.6);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
#audit-btn {
    padding: 16px 32px;
    font-size: 15px;
    background: var(--n-900);
    color: var(--white);
    border: 2px solid var(--n-900);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font2);
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
#audit-btn:hover {
    background: var(--n-800);
    border-color: var(--n-800);
    transform: none;
}
#audit-btn:disabled {
    background: var(--n-600);
    border-color: var(--n-600);
    color: var(--n-300);
}

.ai-model {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px auto -31px;
    mix-blend-mode: soft-light;
}
#ai-model-select {}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--n-200);
}
.tab-btn {
    padding: 11px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    background-color: transparent;
    color: var(--n-500);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font2);
}
.tab-btn:hover:not(:disabled) {
    background-color: var(--col-50);
    color: var(--col-700);
}
.tab-btn.active:disabled,
.tab-btn.active {
    background: linear-gradient(135deg, var(--col-700) 0%, var(--col-500) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.25);
}
.tab-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: transparent;
    color: var(--n-400);
}

.main-content {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 400px;
    border: 1px solid var(--n-200);
}
.tab-view {
    display: none;
}
.tab-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
.tab-view h2 {
    font-family: var(--font2);
    font-size: 22px;
    font-weight: 700;
    color: var(--n-800);
    margin-top: 0;
    margin-bottom: 8px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Empty state */
.tab-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
}
.tab-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    color: var(--col-400);
    opacity: 0.7;
}
.tab-empty-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
}
.tab-empty h2 {
    font-size: 20px;
    color: var(--n-700);
    margin-bottom: 8px;
}
.tab-empty p {
    color: var(--n-500);
    max-width: 460px;
    margin-bottom: 28px;
}

.btn-discover {
    padding: 14px 40px;
    font-size: 15px;
    font-family: var(--font2);
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--col-700) 0%, var(--col-500) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(46, 196, 164, 0.3);
}
.btn-discover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(46, 196, 164, 0.4);
    background: linear-gradient(135deg, var(--col-800) 0%, var(--col-600) 100%);
    color: var(--white);
}
.btn-discover:disabled {
    opacity: 0.7;
    transform: none;
    cursor: wait;
    color: var(--n-700);
    background: var(--n-400);
    box-shadow: none;
}
.btn-discover svg {
    width: auto;
    height: 24px;
    fill: white;
    margin: -6px 32px;
}

/* Tab header */
.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--n-100);
    flex-wrap: wrap;
    gap: 12px;
}
.tab-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tab-header-left h2 { margin: 0; }
.tab-header-right { display: flex; gap: 6px; }


#save-button {
	display: none;
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 97px;
	padding: 12px 24px;
	font-size: 18px;
	font-family: var(--font2);
	font-weight: 700;
	color: var(--white);
	background: linear-gradient(135deg, var(--col-700) 0%, var(--col-500) 100%);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 4px 16px rgba(46, 196, 164, 0.6);
}
#save-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(46, 196, 164, 0.8);
	background: linear-gradient(135deg, var(--col-800) 0%, var(--col-600) 100%);
	color: var(--white);
}
#save-button:disabled {
	transform: none;
	cursor: wait;
	color: var(--n-200);
	background: var(--col-800);
	box-shadow: none;
	pointer-events: none;
}
#save-button svg {
    width: auto;
    height: 24px;
    fill: white;
    margin: -6px 13px;
}

#ai-loader {
	display: none;
	position: fixed;
	left: calc(50% - 50px);
	bottom: 16px;
	width: 100px;
	padding: 12px 24px;
	font-size: 18px;
	font-family: var(--font2);
	font-weight: 700;
	color: var(--white);
	background: linear-gradient(135deg, var(--col-700) 0%, var(--col-500) 100%);
    background: var(--col-500);
	border: none;
	border-radius: var(--radius-md);
	transition: all 0.25s ease;
	box-shadow: 0 4px 16px rgba(46, 196, 164, 0.6);
}
#ai-loader svg {
    width: auto;
    height: 24px;
    stroke: white;
    margin: -6px 0;
}


