/*
Theme Name: Cá Mèll Dark Matrix
Theme URI: https://camell.app/
Author: Cá Mèll
Author URI: https://camell.tech/
Description: Giao diện tối xám khói neon cho hệ thống Cá Mèll Helpdesk/Cloudflare, đồng bộ font/viền neon, không phá layout gốc.
Version: 9.7.0
Text Domain: camell-dark-matrix
*/

:root{
    --cam-bg:#02040a;
    --cam-bg-soft:#050816;
    --cam-panel:#080d1f;
    --cam-panel-soft:#10182c;
    --cam-panel-glass:rgba(6,18,40,0.92);
    --cam-border:rgba(0,255,168,0.35);
    --cam-txt:#e8f3ff;
    --cam-txt-soft:#9fb2d6;
    --cam-muted:#6c7a9c;
    --cam-neon:#00ffa8;
    --cam-cyan:#30e7ff;
    --cam-pink:#ff77d4;
    --cam-amber:#ffb547;
    --cam-danger:#ff4b6e;
    --cam-radius-xl:22px;
    --cam-radius-pill:999px;
    --cam-shadow-neon:0 0 25px rgba(0,255,168,0.35);
}

*,
*::before,
*::after{
    /* Alias vars cho plugin Camell (Ame) dùng chung */
    --bg:var(--cam-bg);
    --bg2:var(--cam-bg-soft);
    --panel:var(--cam-panel);
    --panel2:var(--cam-panel-soft);
    --panel3:var(--cam-panel-soft);
    --txt:var(--cam-txt);
    --txt-soft:var(--cam-txt-soft);
    --neon:var(--cam-neon);
    --cyan:var(--cam-cyan);
    --pink:var(--cam-pink);
    --amber:var(--cam-amber);
    --red:var(--cam-danger);
    --orange:var(--cam-amber);
    --gray:var(--cam-muted);
    --soft:var(--cam-neon);

}
/* BODY – full dark background, giữ layout gốc, không flex, không bó giữa */
html, body{
    margin:0;
    padding:0;
    min-height:100%;
    width:100%;
    background:
        radial-gradient(circle at top, #10172b 0%, #02040a 55%),
        radial-gradient(circle at bottom, #050816 0%, #02040a 60%);
    color:var(--cam-txt);
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Comic Sans MS", sans-serif;
}

/* Body class để nhận biết nhưng không thay đổi layout */
body.camell-dark-matrix{
    background:
        radial-gradient(circle at top, #10172b 0%, #02040a 55%),
        radial-gradient(circle at bottom, #050816 0%, #02040a 60%);
}

/* Wrapper dùng nếu template gọi, nhưng full màn, không giới hạn chiều ngang */
#camell-page-wrapper{
    width:100%;
    min-height:100vh;
    padding:0;
}

/* Không bọc panel thêm – để layout plugin tự xử lý */
.camell-inner{
    width:100%;
    max-width:100%;
    background:transparent;
    border-radius:0;
    box-shadow:none;
    padding:0;
    position:static;
    overflow:visible;
}
.camell-inner::before{
    display:none;
}

/* Không thêm khung nữa, chỉ dùng để format text nếu cần */
.camell-entry{
    background:transparent;
    border:none;
    box-shadow:none;
    padding:0;
}

/* TYPOGRAPHY */
body,
.camell-entry p{
    line-height:1.6;
    color:var(--cam-txt-soft);
}
.camell-entry strong,
.camell-entry b{
    color:var(--cam-txt);
}

/* LINKS – neon highlight */
a{
    color:var(--cam-cyan);
    text-decoration:none;
    text-shadow:0 0 8px rgba(48,231,255,0.85);
}
a:hover,
a:focus{
    color:var(--cam-neon);
    text-shadow:0 0 10px rgba(0,255,168,1);
}

/* BUTTONS / CTA */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.camell-btn{
    background:linear-gradient(135deg, var(--cam-neon), #4bffcb);
    color:#02040a;
    border:none;
    border-radius:var(--cam-radius-pill);
    padding:8px 20px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 0 18px rgba(0,255,168,0.55);
    transition:transform .1s ease-out, box-shadow .1s ease-out, filter .12s ease-out;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.camell-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 0 26px rgba(0,255,168,0.8);
    filter:brightness(1.08);
}

/* FORM CONTROLS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select{
    width:100%;
    max-width:100%;
    background:#050816;
    border-radius:12px;
    border:1px solid rgba(158,178,192,0.5);
    color:var(--cam-txt);
    padding:8px 10px;
    outline:none;
    box-shadow:inset 0 0 18px rgba(0,0,0,0.7);
}
input::placeholder,
textarea::placeholder{
    color:var(--cam-muted);
}
label{
    display:inline-block;
    margin-bottom:4px;
    font-size:13px;
    color:var(--cam-txt-soft);
}

/* TABLES */
table{
    width:100%;
    border-collapse:collapse;
    background:#050816;
    border-radius:16px;
    overflow:hidden;
}
th,
td{
    padding:10px 12px;
    border-bottom:1px solid rgba(13,23,46,0.85);
    color:var(--cam-txt-soft);
}
th{
    background:#050c1b;
    color:var(--cam-txt);
    text-transform:uppercase;
    font-size:11px;
    letter-spacing:0.08em;
}

/* LISTS */
ul, ol{
    padding-left:20px;
}

/* HIDE HEADER + FOOTER (visual only, keep HTML/head for SEO) */
header,
footer,
.site-header,
.site-footer,
#camell-header,
#camell-footer{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
}

/* HIDE WORDPRESS DEFAULT H1 */
h1,
.entry-title,
.page-title{
    display:none !important;
}

/* Giữ H2/H3 trong nội dung nếu plugin dùng */
.camell-entry h2,
.camell-entry h3,
.camell-entry h4{
    color:var(--cam-neon);
    text-shadow:0 0 10px rgba(0,255,168,0.9);
}

/* Gutenberg blocks – bỏ nền trắng nếu có */
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-cover,
.wp-block-table{
    background-color:transparent !important;
}

/* MOBILE */
@media (max-width:768px){
    table{
        font-size:13px;
    }
}

/* GLOBAL NEON BORDER – dùng chung toàn site */
body.camell-dark-matrix::before{
    content:"";
    position:fixed;
    inset:10px;
    border-radius:20px;
    border:2px solid rgba(0,255,168,0.28);
    box-shadow:
        0 0 14px rgba(0,255,168,0.32),
        0 0 30px rgba(0,255,168,0.18);
    pointer-events:none;
    z-index:9999;
}
