/* 
  BeneSafe Professional Design System v3.0
  A clean, professional CSS layer to complement Tailwind CSS.
  Focus: Clarity, Trust, Simplicity.
*/

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

:root {
    /* Brand Colors - Professional Navy & Slate */
    --brand-primary: #0f172a;
    /* Slate 900 */
    --brand-secondary: #334155;
    /* Slate 700 */
    --brand-accent: #0ea5e9;
    /* Sky 500 */

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Backgrounds */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    --bg-sidebar: #0f172a;
    /* Dark sidebar for contrast */

    /* Text */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-on-dark: #f1f5f9;
    /* Slate 100 */

    /* Borders */
    --border-light: #e2e8f0;
    /* Slate 200 */
}

/* Base resets & typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--brand-primary);
    font-weight: 700;
}

/* Dark Mode Overrides */
.dark body {
    --bg-body: #020617;
    /* Slate 950 */
    --bg-surface: #0f172a;
    /* Slate 900 */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-light: #1e293b;
    /* Slate 800 */
    background-color: var(--bg-body);
    color: var(--text-main);
}

.dark h1,
.dark h2,
.dark h3 {
    color: white;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.material-symbols-outlined.icon-filled {
    font-variation-settings: 'FILL' 1;
}

/* 
   COMPONENTS 
*/

/* Cards */
.card-professional {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    transition: all 0.2s ease-in-out;
}

.card-professional:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Buttons */
.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: #1e293b;
    /* Slightly lighter */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

.btn-accent {
    background-color: var(--brand-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-accent:hover {
    background-color: #0284c7;
    /* Sky 600 */
}

/* Inputs */
.input-professional {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    width: 100%;
    transition: border-color 0.2s;
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.input-professional:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

/* Tables */
.table-professional {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-professional th {
    background-color: #f1f5f9;
    /* Slate 100 */
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.dark .table-professional th {
    background-color: #1e293b;
}

.table-professional td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.875rem;
}

.table-professional tr:last-child td {
    border-bottom: none;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* Emerald 100/800 */
.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* Amber 100/800 */
.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Red 100/800 */
.badge-blue {
    background-color: #e0f2fe;
    color: #075985;
}

/* Sky 100/800 */

.dark .badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.dark .badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.dark .badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.dark .badge-blue {
    background-color: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
}

/* Custom Scrollbar tailored for dashboard */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Navy Theme */
.bg-navy {
    background-color: #0f172a;
    /* Slate 900 or similar dark navy */
}

.text-navy-muted {
    color: #94a3b8;
    /* Slate 400 */
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Pricing Card */
.pricing-card {
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border: 2px solid var(--brand-accent);
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--brand-accent);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Premium Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-premium-primary {
    background: var(--brand-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    border: none;
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    color: white;
}

.btn-premium-outline {
    border: 2px solid var(--border-light);
    color: var(--text-main);
    background: transparent;
}

.btn-premium-outline:hover {
    border-color: var(--text-main);
    background: var(--text-main);
    color: white;
}

/* Hero Tag */
.hero-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(14, 165, 233, 0.1);
    color: var(--brand-accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Animation */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}