/* --- 1. CORE LAYOUT --- */
:root {
    --primary: #3b82f6;      /* Spartan Blue */
    --bg-soft: #f1f5f9;     /* Slate 100 */
    --border: #e2e8f0;      /* Slate 200 */
    --text-main: #1e293b;   /* Slate 800 */
    --text-muted: #64748b;  /* Slate 500 */
    --danger: #ef4444;      /* Red 500 */
}

body {
    background-color: var(--bg-soft);
    color: var(--text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.logic_architect_container {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. CARDS & CONTAINERS --- */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- 3. TYPOGRAPHY & LABELS --- */
.spartan_label {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

h1 {
    color: #0f172a;
    font-size: 2.2rem;
}

/* --- 4. INPUT FIELDS --- */
input[type="text"] {
    transition: all 0.2s ease;
    border-radius: 8px;
    outline: none;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#main_title::placeholder {
    color: #cbd5e1;
}

/* --- 5. THE ASSET VAULT UI --- */
.spartan-vault-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.v-thumb-box {
    position: relative;
    width: 65px;
    height: 65px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.v-thumb-box:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.v-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.v-del-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.v-thumb-box:hover .v-del-btn {
    opacity: 1;
}

.v-add-box {
    width: 65px;
    height: 65px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.v-add-box:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary);
}

/* --- 6. EDITOR & TOOLBAR --- */
#main_content {
    background: transparent;
    line-height: 1.7;
    color: #334155;
    tab-size: 4;
}

.toolbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(248, 250, 252, 0.8) !important;
}

/* --- 7. BUTTONS --- */
.tool-btn {
    transition: all 0.2s ease;
}

.tool-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.tool-btn:active {
    transform: translateY(0px);
}