Rafs-an09002's picture
Create static/style.css
79db2a5 verified
:root {
--bg-dark: #0f172a;
--sidebar-bg: #1e293b;
--accent-blue: #38bdf8;
--accent-neon: #00f2ff;
--text-main: #f8fafc;
--text-dim: #94a3b8;
--danger: #ef4444;
--success: #22c55e;
--glass: rgba(255, 255, 255, 0.03);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
overflow: hidden;
height: 100vh;
}
/* মেইন লেআউট */
.app-container {
display: flex;
height: 100vh;
}
/* সাইডবার ডিজাইন */
.sidebar {
width: 350px;
background-color: var(--sidebar-bg);
border-right: 1px solid var(--glass);
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
.brand {
font-family: 'Orbitron', sans-serif;
font-size: 1.5rem;
font-weight: bold;
color: var(--accent-neon);
display: flex;
align-items: center;
gap: 10px;
}
.brand small {
font-size: 0.8rem;
color: var(--text-dim);
}
/* মেট্রিক কার্ড ডিজাইন */
.metric-card {
background: var(--glass);
padding: 1.2rem;
border-radius: 12px;
margin-bottom: 1rem;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.metric-card label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-dim);
display: block;
margin-bottom: 0.5rem;
}
.value-display {
font-family: 'Orbitron', sans-serif;
font-size: 1.8rem;
color: var(--text-main);
}
/* প্রগ্রেস বার */
.progress-bar {
height: 6px;
background: #000;
border-radius: 10px;
margin-top: 10px;
overflow: hidden;
}
.progress-bar div {
height: 100%;
background: var(--accent-blue);
transition: width 0.5s ease;
box-shadow: 0 0 10px var(--accent-blue);
}
.progress-bar .sharpness {
background: var(--danger);
box-shadow: 0 0 10px var(--danger);
}
/* ফেজ ব্যাজ */
.phase-badge {
display: inline-block;
padding: 5px 15px;
background: #334155;
border-radius: 20px;
font-size: 0.9rem;
font-weight: 600;
color: var(--accent-neon);
}
/* মেইন কন্টেন্ট ও বোর্ড */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}
#board {
border: 8px solid #1e293b;
border-radius: 8px;
box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
/* কন্ট্রোলস */
.controls {
margin-top: 2rem;
display: flex;
gap: 15px;
align-items: center;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.2s;
font-family: 'Inter', sans-serif;
}
.btn-danger { background: #ef4444; color: white; }
.btn-secondary { background: #64748b; color: white; }
.btn:hover {
transform: translateY(-2px);
filter: brightness(1.2);
}
.status-msg {
margin-left: 20px;
color: var(--text-dim);
font-style: italic;
}
/* পিজ কাস্টমাইজেশন (আপনার SVG এর জন্য) */
/* Chessboard.js এর ডিফল্ট ইমেজ ওভাররাইড */
.piece-4171 {
background-size: contain;
background-repeat: no-repeat;
}
/* পিজ মুভ হাইলাইট */
.highlight-white { box-shadow: inset 0 0 3px 3px yellow; }
.highlight-black { box-shadow: inset 0 0 3px 3px blue; }
/* মোবাইল রেসপন্সিভ */
@media (max-width: 900px) {
.app-container { flex-direction: column; overflow-y: auto; }
.sidebar { width: 100%; height: auto; }
}