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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #f5f5f5;
            color: #333;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
        }

        /* Navigation */
        .nav {
            display: flex;
            gap: 8px;
            border-bottom: 1px solid #ddd;
            padding: 1rem;
            background: #fafafa;
        }

        .nav-btn {
            padding: 10px 16px;
            border: 1px solid #ddd;
            background: white;
            cursor: pointer;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .nav-btn:hover {
            background: #f0f0f0;
        }

        .nav-btn.active {
            border: 2px solid #0066cc;
            background: white;
            color: #0066cc;
        }

        /* Main content */
        .content {
            padding: 2rem;
        }

        .view {
            display: none;
        }

        .view.active {
            display: block;
        }

        h1 {
            font-size: 28px;
            margin-bottom: 1.5rem;
            font-weight: 600;
        }

        h2 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        /* Dashboard */
        .metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 2rem;
        }

        .metric-card {
            background: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 1.5rem;
        }

        .metric-label {
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }

        .metric-value {
            font-size: 28px;
            font-weight: 600;
            color: #0066cc;
        }

        /* Stage breakdown */
        .stage-list {
            display: grid;
            gap: 12px;
            margin-bottom: 2rem;
        }

        .stage-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 8px;
        }

        .stage-name {
            flex: 1;
            font-weight: 500;
            text-transform: capitalize;
        }

        .stage-count {
            font-size: 13px;
            color: #666;
        }

        .stage-value {
            font-weight: 600;
            color: #0066cc;
            min-width: 120px;
            text-align: right;
        }

        /* Buttons */
        .btn {
            padding: 10px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
            font-size: 14px;
        }

        .btn-primary {
            background: #0066cc;
            color: white;
        }

        .btn-primary:hover {
            background: #0052a3;
        }

        .btn-secondary {
            background: white;
            border: 1px solid #ddd;
            color: #333;
        }

        .btn-secondary:hover {
            background: #f5f5f5;
        }

        .btn-danger {
            background: #ff4444;
            color: white;
        }

        .btn-danger:hover {
            background: #cc0000;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
        }

        /* Search and filters */
        .search-bar {
            display: flex;
            gap: 8px;
            margin-bottom: 1.5rem;
        }

        .search-bar input,
        .search-bar select {
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
        }

        .search-bar input {
            flex: 1;
        }

        /* List and cards */
        .list {
            display: grid;
            gap: 12px;
        }

        .card {
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 1.25rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .card-content {
            flex: 1;
        }

        .card-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            font-size: 13px;
            margin-bottom: 8px;
        }

        .card-field {
            display: flex;
            gap: 4px;
        }

        .card-label {
            color: #666;
            font-weight: 500;
        }

        .card-value {
            color: #0066cc;
        }

        .card-actions {
            display: flex;
            gap: 8px;
            margin-left: 1rem;
        }

        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: #999;
        }

        /* Forms */
        .form-container {
            max-width: 600px;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-size: 14px;
            font-weight: 500;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            font-family: inherit;
        }

        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .form-actions {
            display: flex;
            gap: 8px;
            margin-top: 2rem;
        }

        /* Header row */
        .header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .header-row h1 {
            margin: 0;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .card {
                flex-direction: column;
            }

            .card-grid {
                grid-template-columns: 1fr;
            }

            .card-actions {
                margin-left: 0;
                margin-top: 1rem;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }

            .metrics {
                grid-template-columns: 1fr;
            }

            .nav {
                overflow-x: auto;
                flex-wrap: wrap;
            }

            .nav-btn {
                white-space: nowrap;
            }
        }

        .required {
            color: #ff4444;
        }
