@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #0f172a;
    --bg-surface: rgba(30, 41, 59, 0.7);
    --bg-surface-hover: rgba(51, 65, 85, 0.8);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #10b981; /* Neon-ish green */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --glass-blur: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Glassmorphism utilities */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}
.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

/* Sidebar */
.sidebar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.sidebar a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}
.sidebar a:hover, .sidebar a.active {
    background: var(--primary);
    color: #fff;
    transform: translateX(5px);
}

/* Navbar */
.navbar {
    background: transparent !important;
    color: var(--text-main);
}
.navbar-brand {
    color: var(--text-main) !important;
    font-weight: 700;
}

/* Tables */
.table {
    color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-color: var(--text-main);
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--border-color);
}
.table thead th {
    border-bottom: 2px solid var(--border-color);
    background: rgba(0,0,0,0.2) !important;
    color: var(--text-muted);
    font-weight: 600;
}

/* Forms */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 0.5rem;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}
.form-control::placeholder {
    color: #64748b;
}
.form-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}
.btn-success {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
    font-weight: 600;
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* WhatsApp Mockup Preview */
.wa-mockup {
    background: #0b141a; /* WA Dark Mode bg */
    background-image: url('../img/whats-bg.png');
    background-size: cover;
    border-radius: 1.5rem;
    border: 8px solid #1e293b;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.wa-header {
    background: #202c33;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    color: #e9edef;
    font-size: 1.1rem;
}
.wa-header-avatar {
    width: 40px;
    height: 40px;
    background: #64748b;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wa-chat {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wa-bubble {
    background: #005c4b; /* WA outgoing bubble dark */
    color: #e9edef;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    align-self: flex-end;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    border-top-right-radius: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.wa-bubble img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
}
.wa-bubble .wa-title {
    font-weight: bold;
}
.wa-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    float: right;
    margin-top: 5px;
    margin-left: 10px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Text colors for dark mode */
.text-muted { color: var(--text-muted) !important; }
.bg-light { background-color: var(--bg-surface) !important; }
.bg-white { background-color: rgba(255, 255, 255, 0.05) !important; }
