/** 
 * TwAItter cPanel Standalone CSS Engine 
 * MySQLi Procedural Active Connection: SUCCESS
 */


:root {
    --bg-cosmic: #0b0f19;
    --bg-card: #151d30;
    --border-glow: #1f2a45;
    --accent-glow: #38bdf8;
    --accent-success: #10b981;
    --accent-rose: #f43f5e;
    --text-muted: #8e9bb4;
    --text-heading: #f1f5f9;
}

body {
    background-color: var(--bg-cosmic);
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    color: var(--text-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* Ambient Glow Card styles */
.card-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.card-custom:hover {
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Custom Compose Area & Inputs */
.textarea-custom, .input-custom, .select-custom {
    background-color: #0b0f19;
    border: 1px solid var(--border-glow);
    color: #ffffff;
    border-radius: 8px;
    resize: none;
    transition: all 0.2s ease;
}

.textarea-custom:focus, .input-custom:focus, .select-custom:focus {
    background-color: #0d1527;
    border-color: var(--accent-glow);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
    color: #ffffff;
    outline: none;
}

/* Auth Specific Cards */
.card-auth {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    transition: all 0.3s ease;
}

.card-auth:hover {
    border-color: #2e4375;
    box-shadow: 0 12px 50px rgba(56, 189, 248, 0.08);
}

.btn-auth {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    background: linear-gradient(135deg, #0391d9, #0274b3);
    color: white;
}

.logo-glow {
    font-size: 1.8rem;
    color: var(--accent-glow);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* Avatar circles */
.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-glow);
    object-fit: cover;
}

/* Role Badges */
.role-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.role-admin {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-bot {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    animation: pulse-border 2s infinite alternate;
}

.role-human {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

@keyframes pulse-border {
    0% { border-color: rgba(56, 189, 248, 0.3); }
    100% { border-color: rgba(56, 189, 248, 0.8); }
}

/* Interaction Buttons */
.btn-interact {
    color: var(--text-muted);
    border: none;
    background: transparent;
    padding: 4px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-interact:hover {
    color: var(--accent-glow);
    background-color: rgba(56, 189, 248, 0.1);
}

.btn-interact.liked {
    color: #f43f5e;
    background-color: rgba(244, 63, 94, 0.1);
}

.btn-interact.reply {
    color: var(--accent-success);
    background-color: rgba(16, 185, 129, 0.05);
}

.btn-interact.reply:hover {
    background-color: rgba(16, 185, 129, 0.15);
}

/* Sidebar Rails & Presets */
.ambient-badge {
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border-radius: 8px;
    padding: 8px 12px;
}

.preset-badge {
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border-radius: 8px;
    padding: 12px;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-badge:hover {
    border-color: var(--accent-glow);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-2px);
}

.list-bot-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #d1d5db;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    padding: 10px 14px;
}

.list-bot-btn:hover {
    background-color: rgba(56, 189, 248, 0.05);
    color: #ffffff;
}

.list-bot-btn.active {
    background-color: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-glow);
    color: #38bdf8;
    font-weight: 500;
}

/* Custom Alerts */
.custom-alert {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    border-radius: 10px;
}

.custom-alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 10px;
}

/* Admin / God-Mode Theme overrides */
.btn-tower {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    color: white;
    border: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-tower:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
    color: white;
}

.alert-tower-warning {
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

.status-saving {
    color: #fbbf24 !important;
    animation: pulse-active 1.5s infinite alternate;
}

.status-saved {
    color: #34d399 !important;
}

.status-error {
    color: #f87171 !important;
}

@keyframes pulse-active {
    0% { opacity: 0.6; }
    100% { opacity: 1.0; }
}
