:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.app-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.app-navbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 900;
}

.main-body {
    padding: 2rem;
    flex: 1;
    width: 100%;
}

.hover-bg:hover {
    background-color: #f1f5f9;
}

.card-custom {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.badge-status {
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-todo { background-color: #e2e8f0; color: #475569; }
.badge-working { background-color: #dbeafe; color: #1e40af; }
.badge-review { background-color: #fef3c7; color: #92400e; }
.badge-returned { background-color: #fee2e2; color: #991b1b; }
.badge-done { background-color: #dcfce7; color: #166534; }

.badge-role {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
.role-om { background: #ede9fe; color: #5b21b6; }
.role-tl { background: #e0f2fe; color: #0369a1; }
.role-dev { background: #f0fdf4; color: #15803d; }
.role-pm { background: #fff7ed; color: #c2410c; }

.btn-primary-custom {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: background 0.2s ease;
}
.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

@media (max-width: 991px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .app-content {
        margin-left: 0;
    }
}