/* VERITAS Global Styles */

:root {
	--primary-purple: #667eea;
	--secondary-purple: #764ba2;
	--accent-pink: #f093fb;
	--dark-navy: #1e293b;
	--darker-navy: #0f172a;
	--text-dark: #1e293b;
	--text-light: #64748b;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 50%, var(--accent-pink) 100%);
	min-height: 100vh;
}

/* Hamburger Button */
.hamburger-trigger {
	position: fixed;
	left: 20px;
	top: 20px;
	width: 50px;
	height: 50px;
	background: var(--primary-purple);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	z-index: 10000;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
}

.hamburger-trigger:hover {
	background: var(--secondary-purple);
}

.hamburger-line {
	width: 24px;
	height: 3px;
	background: white;
	border-radius: 2px;
}

/* Close X Button */
.nav-close-btn {
	position: fixed;
	right: 20px;
	top: 20px;
	width: 50px;
	height: 50px;
	background: rgba(255,255,255,0.2);
	border-radius: 12px;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: white;
	cursor: pointer;
	z-index: 10001;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255,255,255,0.3);
}

.nav-close-btn:hover {
	background: rgba(255,255,255,0.3);
	ransform: rotate(90deg);
}

/* Slide-out Navigation */
.veritas-hamburger-nav {
	position: fixed;
	left: -240px;
	top: 0;
	width: 240px;
	height: 100vh;
	background: linear-gradient(180deg, var(--dark-navy) 0%, var(--darker-navy) 100%);
	box-shadow: 4px 0 20px rgba(0,0,0,0.3);
	z-index: 9999;
	transition: left 0.3s ease;
}

.veritas-hamburger-nav.active {
	left: 0;
}

.nav-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px 0;
}

.nav-brand {
	padding: 30px 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-brand a {
	display: flex;
	align-items: center;
	gap: 15px;
	text-decoration: none;
}

.brand-logo {
	width: 45px;
	height: 45px;
	background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-pink) 100%);
	color: white;
	font-size: 26px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.brand-name {
	font-size: 24px;
	font-weight: 700;
	color: white;
	letter-spacing: 1px;
}

.brand-subtitle {
	font-size: 11px;
	font-weight: 400;
	color: rgba(255,255,255,0.6);
	margin-top: -2px;
	letter-spacing: 0.5px;
}

.nav-links {
	flex: 1;
	padding: 20px 0;
	overflow-y: auto;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
}

.nav-link:hover {
	background: rgba(255,255,255,0.08);
	color: white;
	border-left-color: var(--accent-pink);
}

.nav-link.active {
	background: rgba(102, 126, 234, 0.2);
	color: white;
	border-left-color: var(--accent-pink);
}

.nav-icon {
	font-size: 20px;
	width: 24px;
	text-align: center;
}

/* ═════════════════════════════════════════════════════════════════════════════
   NESTED SIDEBAR NAVIGATION - ACCORDION MENU
   ═════════════════════════════════════════════════════════════════════════════ */

/* Section Headers (Category Labels) */
.nav-section-header {
	padding: 8px 20px 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 8px;
	-webkit-user-select: none;
	user-select: none;
}

/* Accordion Section Headers (Clickable) */
.nav-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 20px 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.nav-accordion-header:hover {
	color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.05);
}

.nav-accordion-header.expanded {
	color: rgba(255, 255, 255, 0.75);
}

/* Chevron Indicator (› rotates to ˅ when expanded) */
.accordion-chevron {
	font-size: 18px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.4);
	transition: transform 0.3s ease;
	transform-origin: center;
}

.nav-accordion-header.expanded .accordion-chevron {
	transform: rotate(90deg);
	color: rgba(255, 255, 255, 0.6);
}

/* Accordion Content Container (Collapsible) */
.nav-accordion-content {
	display: none;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

/* Child Navigation Links (Indented 16px) */
.nav-link.nav-child {
	padding-left: 36px;
	font-size: 14px;
	border-left: 3px solid transparent;
}

.nav-link.nav-child:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
	border-left-color: var(--accent-pink);
}

.nav-link.nav-child.active {
	background: rgba(102, 126, 234, 0.25);
	color: white;
	border-left-color: var(--accent-pink);
	font-weight: 600;
}

/* Parent Navigation Links (Non-Accordion, e.g., Workflow) */
.nav-link.nav-parent {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.nav-link.nav-parent:hover {
	color: white;
	background: rgba(255, 255, 255, 0.12);
}

.nav-link.nav-parent.active {
	background: rgba(102, 126, 234, 0.3);
	color: white;
	border-left-color: var(--accent-pink);
}

/* ═════════════════════════════════════════════════════════════════════════════
   END NESTED SIDEBAR NAVIGATION
   ═════════════════════════════════════════════════════════════════════════════ */

.main-content {
	margin-left: 0;
	padding: 80px 20px 40px;
	min-height: 100vh;
}

.content-card {
	max-width: 1200px;
	margin: 0 auto;
	background: rgba(255,255,255,0.95);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
	backdrop-filter: blur(10px);
}

.page-header {
	margin-bottom: 40px;
	border-bottom: 2px solid #e5e7eb;
	padding-bottom: 20px;
}

.page-header h1 {
	font-size: 36px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 10px 0;
}

.page-header .subtitle {
	font-size: 16px;
	color: var(--text-light);
	margin: 0;
}

.status-indicator {
	position: fixed;
	bottom: 20px;
	left: 20px;
	background: rgba(255,255,255,0.95);
	padding: 12px 20px;
	border-radius: 30px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 500;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   HOME SCREEN - APPLE-INSPIRED LAUNCHER CARDS (SQUIRCLES)
   ═════════════════════════════════════════════════════════════════════════════ */

/* Squircle Card Base */
.squircle-card {
    display: block;
    position: relative;
    padding: 28px 24px 32px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Hover State - Apple Lift Effect */
.squircle-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.15), 
                0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

/* Active/Press State */
.squircle-card:active {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.12), 
                0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Icon */
.squircle-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.squircle-card:hover .squircle-icon {
    transform: scale(1.08);
}

/* Title */
.squircle-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Description */
.squircle-description {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.002em;
}

/* Category Badge (Optional - if you want to add category indicators) */
.squircle-card[data-category="pipeline"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.squircle-card[data-category="consumer"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.squircle-card[data-category="admin"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.squircle-card:hover::before {
    opacity: 1;
}

/* Focus State for Accessibility (Keyboard Navigation) */
.squircle-card:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.05);
}

.squircle-card:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Disabled/Locked State (Future Enhancement) */
.squircle-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.squircle-card.disabled .squircle-icon {
    filter: grayscale(100%);
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS FOR SQUIRCLE CARDS
   ═════════════════════════════════════════════════════════════════════════════ */

/* Tablets */
@media (max-width: 1024px) {
    .squircle-card {
        padding: 24px 20px 28px;
    }

    .squircle-icon {
        font-size: 44px;
        margin-bottom: 14px;
    }

    .squircle-title {
        font-size: 17px;
    }

    .squircle-description {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .squircle-card {
        padding: 20px 18px 24px;
        border-radius: 14px;
    }

    .squircle-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .squircle-title {
        font-size: 16px;
    }

    .squircle-description {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Reduce hover lift on mobile (touch devices) */
    .squircle-card:hover {
        transform: translateY(-2px) scale(1.005);
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .squircle-card {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    .squircle-title {
        color: #f1f5f9;
    }

    .squircle-description {
        color: #94a3b8;
    }

    .squircle-card:hover {
        border-color: #475569;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3),
                    0 6px 16px rgba(0, 0, 0, 0.2);
    }
}
