:root {
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-color: #3b82f6;
    --psm-color: #2563eb;
    --psm-light: #eff6ff;
    --nuk-color: #059669;
    --nuk-light: #ecfdf5;
    --merge-color: #7c3aed;
    --merge-light: #f5f3ff;
    --border-color: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Layout */
.app-layout {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-shadow: 4px 0 24px rgba(0,0,0,0.02);
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.brand-logo {
    height: 35px;
    object-fit: contain;
}

.divider {
    width: 1px;
    height: 25px;
    background-color: #cbd5e1;
}

.sidebar-nav {
    padding: 30px 20px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--psm-light);
    color: var(--primary-color);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

.credit-badge {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 15px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.dev-title {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.dev-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 80px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar svg {
    width: 20px;
    height: 20px;
}

.username {
    font-weight: 500;
    font-size: 0.95rem;
}

.dashboard-inner {
    padding: 40px;
    max-width: 1200px;
    width: 100%;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="white" stroke-width="20" stroke-opacity="0.1"/></svg>') no-repeat right center / contain;
}

.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: transparent;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.psm-theme .card-icon-wrapper { background: var(--psm-light); color: var(--psm-color); }
.nuk-theme .card-icon-wrapper { background: var(--nuk-light); color: var(--nuk-color); }

.card-icon { width: 30px; height: 30px; }

.card-details h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.card-details p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-primary {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: auto;
}

.psm-theme .btn-primary { background: var(--psm-color); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.nuk-theme .btn-primary { background: var(--nuk-color); box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3); }

.btn-primary:hover, .btn-merge:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-primary:active, .btn-merge:active { transform: translateY(0); }

/* Merge Section */
.merge-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.merge-section:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: var(--merge-color);
}

.merge-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.merge-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--merge-light);
    color: var(--merge-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.merge-icon { width: 40px; height: 40px; }

.merge-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.merge-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
}

.btn-merge {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: var(--merge-color);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    font-size: 1.1rem;
    transition: all 0.2s;
    white-space: nowrap;
}
